diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2018-06-09 20:19:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-09 20:19:49 +0200 |
| commit | f564c280408b0f9640ee3d60cf54cd2671d3d49c (patch) | |
| tree | f5f5b4bcac77f55e5b0c4dbf9c865dfff33f77f6 /Source/Core/Common/Crypto/ec.cpp | |
| parent | 5d1b35e86711421c3af76c86ae0ad2b083d1091d (diff) | |
| parent | 7b11ce3dd290b2f34164074cc493ea9e0c197fdf (diff) | |
Merge pull request #7099 from lioncash/compiler
Common: Add Compiler.h header for compiler-specifics
Diffstat (limited to 'Source/Core/Common/Crypto/ec.cpp')
| -rw-r--r-- | Source/Core/Common/Crypto/ec.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/Core/Common/Crypto/ec.cpp b/Source/Core/Common/Crypto/ec.cpp index 78cd346ebd..098d3e30c6 100644 --- a/Source/Core/Common/Crypto/ec.cpp +++ b/Source/Core/Common/Crypto/ec.cpp @@ -7,12 +7,9 @@ // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt #include <algorithm> -#include <cstdio> -#include <cstdlib> -#include <ctime> -#include <string.h> +#include <cstring> -#include "Common/Common.h" +#include "Common/Compiler.h" #include "Common/Crypto/bn.h" #include "Common/Crypto/ec.h" #include "Common/Random.h" @@ -176,9 +173,9 @@ private: }; // y**2 + x*y = x**3 + x + b -UNUSED static const u8 ec_b[30] = {0x00, 0x66, 0x64, 0x7e, 0xde, 0x6c, 0x33, 0x2c, 0x7f, 0x8c, - 0x09, 0x23, 0xbb, 0x58, 0x21, 0x3b, 0x33, 0x3b, 0x20, 0xe9, - 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad}; +DOLPHIN_UNUSED static const u8 ec_b[30] = { + 0x00, 0x66, 0x64, 0x7e, 0xde, 0x6c, 0x33, 0x2c, 0x7f, 0x8c, 0x09, 0x23, 0xbb, 0x58, 0x21, + 0x3b, 0x33, 0x3b, 0x20, 0xe9, 0xce, 0x42, 0x81, 0xfe, 0x11, 0x5f, 0x7d, 0x8f, 0x90, 0xad}; // order of the addition group of points static const u8 ec_N[30] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
