diff options
author | Stephan Mueller <smueller@chronox.de> | 2018-07-11 20:36:23 +0200 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-05-01 17:43:19 +0100 |
commit | 16e19df3d236384f4d4ab9bdaa6e82f06ac8a62a (patch) | |
tree | 3d98f63e1ca7fe4390ac8c11da5c252025a72892 | |
parent | 4eb15bf4714c7cd00b15a08aa066b4bc88b631fb (diff) |
MLK-19826: crypto: ecdh - fix typo of P-192 b value
Fix the b value to be compliant with FIPS 186-4 D.1.2.1. This fix is
required to make sure the SP800-56A public key test passes for P-192.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit aef66587f19c7ecc52717328a4c5484f1d2268e9)
(cherry picked from commit b179af3efe0c48c2cec4e4add7f3c4b8129d7a07)
-rw-r--r-- | crypto/ecc_curve_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecc_curve_defs.h b/crypto/ecc_curve_defs.h index 94e883a9403f..336ab1805639 100644 --- a/crypto/ecc_curve_defs.h +++ b/crypto/ecc_curve_defs.h @@ -27,7 +27,7 @@ static u64 nist_p192_p[] = { 0xFFFFFFFFFFFFFFFFull, 0xFFFFFFFFFFFFFFFEull, static u64 nist_p192_n[] = { 0x146BC9B1B4D22831ull, 0xFFFFFFFF99DEF836ull, 0xFFFFFFFFFFFFFFFFull }; static u64 nist_p192_a[] = { 0xFFFFFFFFFFFFFFFCull, 0xFFFFFFFFFFFFFFFEull, - 0xFFFFFFFFFFFFFFFEull }; + 0xFFFFFFFFFFFFFFFFull }; static u64 nist_p192_b[] = { 0xFEB8DEECC146B9B1ull, 0x0FA7E9AB72243049ull, 0x64210519E59C80E7ull }; static struct ecc_curve nist_p192 = { |