Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-07-10 | KeyManager: Prevent writing of invalid keys | Morph | 1 | -4/+8 | |
If the keys are zero, don't write them to the autogenerated file. | |||||
2020-04-17 | key_manager: Resolve missing field initializer warning | Lioncash | 1 | -1/+2 | |
2019-11-12 | key_manager: Make use of IOFile in WriteKeyToFile() | Lioncash | 1 | -11/+15 | |
This properly handles unicode-based paths on Windows, while opening a raw stream doesn't out-of-the-box. Prevents file creation from potentially failing on Windows PCs that make use of unicode characters in their save paths (e.g. writing to a user's AppData folder, where the user has a name with non-ASCII characters). | |||||
2019-11-12 | core: Migrate off deprecated mbedtls functions | Lioncash | 1 | -1/+1 | |
These functions are marked for deprecation and it's recommended that the *_ret variants be used instead. | |||||
2019-11-12 | externals: Update httplib | Lioncash | 1 | -1/+1 | |
Since the introduction of this library, numerous improvements have been made. Notably, many of the warnings we would get by simply including the library header have now been fixed. This makes it much easier to make conversion warning an error. | |||||
2019-11-12 | crypto: Resolve sign-conversion warnings | Lioncash | 1 | -8/+8 | |
2019-10-02 | [crypto] Use IsAllZeroArray helper function | vperus | 1 | -1/+1 | |
2019-07-08 | key_manager: Convert Ticket union to std::variant | Zach Hilman | 1 | -35/+56 | |
2019-07-08 | es: Populate/synthesize tickets on construction | Zach Hilman | 1 | -13/+13 | |
2019-07-08 | key_manager: Add structure for Ticket parsing | Zach Hilman | 1 | -22/+102 | |
2019-07-08 | key_manager: Add accessors/helpers for ticket management | Zach Hilman | 1 | -14/+86 | |
2019-06-12 | common/hex_util: Combine HexVectorToString() and HexArrayToString() | Lioncash | 1 | -2/+2 | |
These can be generified together by using a concept type to designate them. This also has the benefit of not making copies of potentially very large arrays. | |||||
2019-03-27 | core: Port current uses of RegisteredCache to ContentProvider | Zach Hilman | 1 | -1/+2 | |
2019-02-21 | Fixes Unicode Key File Directories (#2120) | Jungy | 1 | -1/+2 | |
* Fixes Unicode Key File Directories Adds code so that when loading a file it converts to UTF16 first, to ensure the files can be opened. Code borrowed from FileUtil::Exists. * Update src/core/crypto/key_manager.cpp Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com> * Update src/core/crypto/key_manager.cpp Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com> * Using FileUtil instead to be cleaner. * Update src/core/crypto/key_manager.cpp Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com> | |||||
2018-12-02 | filesystem: De-globalize registered_cache_union | Lioncash | 1 | -1/+1 | |
We can just return a new instance of this when it's requested. This only ever holds pointers to the existing registed caches, so it's not a large object. Plus, this also gets rid of the need to keep around a separate member function just to properly clear out the union. Gets rid of one of five globals in the filesystem code. | |||||
2018-12-02 | crypto/key_manager: Remove unused variable in GetTicketblob() | Lioncash | 1 | -1/+0 | |
2018-10-30 | global: Use std::optional instead of boost::optional (#1578) | Frederic L | 1 | -22/+22 | |
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build | |||||
2018-10-28 | key_manager: Use isxdigit instead of isdigit when reading key file | Zach Hilman | 1 | -1/+1 | |
Crypto revisions are hex numbers and this function only checks if the string is valid for stoul in base 16, so it should be isxdigit. | |||||
2018-10-24 | key_manager: Remove unused variable in DeriveBase() | Lioncash | 1 | -1/+0 | |
2018-10-13 | key_manager/partition_data_manager: Silence truncation compiler warnings | Lioncash | 1 | -2/+5 | |
2018-10-13 | key_manager: Use std::vector's insert() instead of std::copy with a back_inserter | Lioncash | 1 | -2/+2 | |
If the data is unconditionally being appended to the back of a std::vector, we can just directly insert it there without the need to insert all of the elements one-by-one with a std::back_inserter. | |||||
2018-10-13 | key_manager: Brace long conditional body | Lioncash | 1 | -1/+2 | |
If a conditional (or it's body) travels more than one line, it should be braced. | |||||
2018-10-13 | key_manager: Don't assume file seeks and reads will always succeed | Lioncash | 1 | -7/+17 | |
Given the filesystem should always be assumed to be volatile, we should check and bail out if a seek operation isn't successful. This'll prevent potentially writing/returning garbage data from the function in rare cases. This also allows removing a check to see if an offset is within the bounds of a file before perfoming a seek operation. If a seek is attempted beyond the end of a file, it will fail, so this essentially combines two checks into one in one place. | |||||
2018-10-13 | key_manager: Remove unnecessary seek in DeriveSDSeed() | Lioncash | 1 | -1/+0 | |
Given the file is opened a few lines above and no operations are done, other than check if the file is in a valid state, the read/write pointer will always be at the beginning of the file. | |||||
2018-10-07 | partition_data_manager: Rename system files for hekate | Zach Hilman | 1 | -132/+160 | |
x | |||||
2018-10-07 | key_manager: Add support for loading keys from partition data | Zach Hilman | 1 | -0/+86 | |
2018-10-07 | key_manager: Add ETicket key derivation | Zach Hilman | 1 | -0/+249 | |
Derives titlekeys | |||||
2018-10-07 | key_manager: Add base key derivation | Zach Hilman | 1 | -0/+209 | |
Derives master keys, game encryption keys, and package1/2 keys | |||||
2018-10-07 | key_manager: Add BIS key getter | Zach Hilman | 1 | -2/+17 | |
2018-10-07 | key_manager: Add support for more keys | Zach Hilman | 1 | -1/+67 | |
TSEC, SBK, BIS, and other Sources for proper derivation | |||||
2018-10-07 | key_manager: Add keyblob support | Zach Hilman | 1 | -0/+10 | |
2018-10-07 | key_manager: Add support for crypto revisions past 04 | Zach Hilman | 1 | -43/+63 | |
2018-10-07 | key_manager: Add support for comments in keyfiles | Zach Hilman | 1 | -0/+3 | |
2018-10-07 | key_manager: Add support for console-specific keyfile | Zach Hilman | 1 | -3/+7 | |
2018-10-07 | key_manager: Rename KEK to Kek | Zach Hilman | 1 | -5/+6 | |
2018-09-15 | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 1 | -3/+3 | |
2018-09-04 | nsp: Comply with style and performance guidelines | Zach Hilman | 1 | -1/+1 | |
2018-09-04 | key_manager: Avoid autogeneration if key exists | Zach Hilman | 1 | -3/+13 | |
2018-09-04 | file_sys: Replace includes with forward declarations where applicable | Lioncash | 1 | -0/+3 | |
Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed. | |||||
2018-08-25 | file_sys/crypto: Fix missing/unnecessary includes | Zach Hilman | 1 | -3/+2 | |
2018-08-23 | key_manager: Eliminate indexed for loop | Zach Hilman | 1 | -6/+13 | |
2018-08-23 | key_manager: Create keys dir if it dosen't exist | Zach Hilman | 1 | -0/+1 | |
On call to WriteKeyToFile, so that the autogenerated file can be written. | |||||
2018-08-23 | file_sys: Cut down on includes and copies | Zach Hilman | 1 | -11/+11 | |
2018-08-23 | crypto: Eliminate magic constants | Zach Hilman | 1 | -1/+1 | |
2018-08-23 | key_manager: Add support for autogenerated keys | Zach Hilman | 1 | -3/+43 | |
Stored in a separate file than manual keys. | |||||
2018-08-23 | key_manager: Add support for KEK and SD seed derivation | Zach Hilman | 1 | -2/+112 | |
2018-08-23 | key_manager: Switch to boost flat_map for keys | Zach Hilman | 1 | -2/+3 | |
Should make key gets marginally faster. | |||||
2018-08-16 | common: Namespace hex_util.h/.cpp | Lioncash | 1 | -4/+4 | |
It's in the common code, so it should be under the Common namespace like everything else. | |||||
2018-08-12 | crypto: Remove hex utilities from key_manager | Zach Hilman | 1 | -33/+2 | |
Move to hex_util.h in common | |||||
2018-08-04 | core/crypto: Remove unnecessary includes | Lioncash | 1 | -4/+1 | |
2018-08-04 | key_manager: Use regular std::string instead of std::string_view | Lioncash | 1 | -7/+3 | |
The benefit of std::string_view comes from the idea of avoiding copies (essentially acting as a non-owning view), however if we're just going to copy into a local variable immediately, there's not much benefit gained here. | |||||
2018-08-01 | Use more descriptive error codes and messages | Zach Hilman | 1 | -5/+22 | |
2018-08-01 | Add missing includes and use const where applicable | Zach Hilman | 1 | -5/+8 | |
2018-08-01 | Allow key loading from %YUZU_DIR%/keys in addition to ~/.switch | Zach Hilman | 1 | -7/+18 | |
2018-08-01 | Make XCI comply to review and style guidelines | Zach Hilman | 1 | -301/+75 | |
2018-08-01 | Remove files that are not used | Zach Hilman | 1 | -0/+410 | |