From cae8718217846cfaefcbfecd55f9a117731a8d99 Mon Sep 17 00:00:00 2001 From: "Pavel V. Shatov (Meister)" Date: Mon, 6 Feb 2017 14:40:16 +0300 Subject: Minor cleanup * Fixed misplaced comma in 'ecdsa_model.h' * Rewrote P-384 reduction routine to match the style used in P-256 reduction --- ecdsa_model.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecdsa_model.h') 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} -- cgit v1.2.3