diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2017-02-06 14:40:16 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2017-02-06 14:40:16 +0300 |
commit | cae8718217846cfaefcbfecd55f9a117731a8d99 (patch) | |
tree | 0cd0a56534b18adafbce4e54bdf9f1327b71ddae /ecdsa_model.h | |
parent | 6e2c0ec98483c16687669077d74335bc4e691593 (diff) |
Minor cleanup
* Fixed misplaced comma in 'ecdsa_model.h'
* Rewrote P-384 reduction routine to match the style used in P-256 reduction
Diffstat (limited to 'ecdsa_model.h')
-rw-r--r-- | ecdsa_model.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecdsa_model.h b/ecdsa_model.h index 1e6a04c..fc7e571 100644 --- a/ecdsa_model.h +++ b/ecdsa_model.h @@ -45,7 +45,7 @@ // USE_CURVE == 2 -> P-384
//
//------------------------------------------------------------------------------
-#define USE_CURVE 1
+#define USE_CURVE 2
//------------------------------------------------------------------------------
@@ -112,7 +112,7 @@ #define P_384_ONE {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001}
/* Division Factor */
-#define P_384_DELTA {0x7fffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x7fffffff, 0x80000000, 0x0000000, 0x080000000}
+#define P_384_DELTA {0x7fffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x7fffffff, 0x80000000, 0x00000000, 0x80000000}
/* Base Point */
#define P_384_G_X {0xaa87ca22, 0xbe8b0537, 0x8eb1c71e, 0xf320ad74, 0x6e1d3b62, 0x8ba79b98, 0x59f741e0, 0x82542a38, 0x5502f25d, 0xbf55296c, 0x3a545e38, 0x72760ab7}
|