aboutsummaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
AgeCommit message (Collapse)Author
2018-10-30global: Use std::optional instead of boost::optional (#1578)Frederic L
* 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-27key_manager: Use isxdigit instead of isdigit when reading key fileZach Hilman
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-24key_manager: Remove unused variable in DeriveBase()Lioncash
2018-10-13key_manager/partition_data_manager: Silence truncation compiler warningsLioncash
2018-10-13key_manager: Use std::vector's insert() instead of std::copy with a ↵Lioncash
back_inserter 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-13key_manager: Brace long conditional bodyLioncash
If a conditional (or it's body) travels more than one line, it should be braced.
2018-10-13key_manager: Don't assume file seeks and reads will always succeedLioncash
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-13key_manager: Remove unnecessary seek in DeriveSDSeed()Lioncash
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-07partition_data_manager: Rename system files for hekateZach Hilman
x
2018-10-07key_manager: Add support for loading keys from partition dataZach Hilman
2018-10-07key_manager: Add ETicket key derivationZach Hilman
Derives titlekeys
2018-10-07key_manager: Add base key derivationZach Hilman
Derives master keys, game encryption keys, and package1/2 keys
2018-10-07key_manager: Add BIS key getterZach Hilman
2018-10-07key_manager: Add support for more keysZach Hilman
TSEC, SBK, BIS, and other Sources for proper derivation
2018-10-07key_manager: Add keyblob supportZach Hilman
2018-10-07key_manager: Add support for crypto revisions past 04Zach Hilman
2018-10-07key_manager: Add support for comments in keyfilesZach Hilman
2018-10-07key_manager: Add support for console-specific keyfileZach Hilman
2018-10-07key_manager: Rename KEK to KekZach Hilman
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi
2018-09-04nsp: Comply with style and performance guidelinesZach Hilman
2018-09-04key_manager: Avoid autogeneration if key existsZach Hilman
2018-09-03file_sys: Replace includes with forward declarations where applicableLioncash
Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
2018-08-24file_sys/crypto: Fix missing/unnecessary includesZach Hilman
2018-08-23key_manager: Eliminate indexed for loopZach Hilman
2018-08-23key_manager: Create keys dir if it dosen't existZach Hilman
On call to WriteKeyToFile, so that the autogenerated file can be written.
2018-08-23file_sys: Cut down on includes and copiesZach Hilman
2018-08-23crypto: Eliminate magic constantsZach Hilman
2018-08-23key_manager: Add support for autogenerated keysZach Hilman
Stored in a separate file than manual keys.
2018-08-23key_manager: Add support for KEK and SD seed derivationZach Hilman
2018-08-23key_manager: Switch to boost flat_map for keysZach Hilman
Should make key gets marginally faster.
2018-08-15common: Namespace hex_util.h/.cppLioncash
It's in the common code, so it should be under the Common namespace like everything else.
2018-08-11crypto: Remove hex utilities from key_managerZach Hilman
Move to hex_util.h in common
2018-08-04core/crypto: Remove unnecessary includesLioncash
2018-08-04key_manager: Use regular std::string instead of std::string_viewLioncash
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-01Use more descriptive error codes and messagesZach Hilman
2018-08-01Add missing includes and use const where applicableZach Hilman
2018-08-01Allow key loading from %YUZU_DIR%/keys in addition to ~/.switchZach Hilman
2018-08-01Make XCI comply to review and style guidelinesZach Hilman
2018-08-01Remove files that are not usedZach Hilman