summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Crypto/ec.cpp
AgeCommit message (Collapse)Author
2018-06-09Compiler: Rename UNUSED macro to DOLPHIN_UNUSEDLioncash
UNUSED is quite a generic macro name and has potential to clash with other libraries, so rename it to DOLPHIN_UNUSED to prevent that, as well as make its naming consistent with the force inline macro
2018-06-09Common: Add header for compiler-specificsLioncash
Instead of globbing things under an ambiguous Common.h header, move compiler-specifics over to Compiler.h. This gives us a dedicated home for anything related to compilers that we want to make functional across all compilers that we support. This moves us a little closer to eliminating Common.h entirely.
2018-05-31Common: Add Random utilitiesLéo Lam
This makes it easier to generate random numbers or fill a buffer with random data in a cryptographically secure way. This also replaces existing usages of RNG functions in the codebase: * <random> is pretty hard to use correctly, and std::random_device does not give enough guarantees about its results (it's implementation-defined, non cryptographically secure and could be deterministic on some platforms). Doing things correctly is error prone and verbose. * rand() is terrible and should not be used especially in crypto code.
2018-05-27Move ECCSignature to Common::ec and give it a less confusing nameLéo Lam
2018-05-20IOSC: Implement VerifyPublicKeySign for ECCLéo Lam
2018-05-20ec: Improve readability and clarityLéo Lam
- Move all of the ec functions into the Common::ec namespace. - Give the public functions better names and some usage information. - Move all of the "elt" related functions into an "elt" class including all of the arithmetic operations, so that the logic becomes clearer and feels less like assembly. This also makes it much more obvious what the parameters are, instead of only using unsigned char* (which doesn't tell anything about what the pointer is used for or the size). - Similarly, add a new "Point" class and move point functions there. Overload the arithmetic operators to make calculations easier to read
2018-05-20ec: Avoid exposing internal functionLéo Lam
2017-06-07msvc: disable unused symbol warning in Core/Common/Crypto/ec.cppShawn Hoffman
2017-03-11IOS/ES: Handle personalised tickets properlyLéo Lam
IOS unpersonalises device-specific ("personalised") tickets prior to storing them on the NAND.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-21More asterisksmathieui
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2014-09-19Fix build failing when disabling precompiled headers.Rohit Nirmal
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-07-13Fix warnings unearthed by #579Tillmann Karras
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-02-28Crypto: small cleanupTillmann Karras
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre