"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testsuite/ecdsa-verify-test.c" between
nettle-3.7.1.tar.gz and nettle-3.7.2.tar.gz

About: Nettle is a low-level cryptographic library.

ecdsa-verify-test.c  (nettle-3.7.1):ecdsa-verify-test.c  (nettle-3.7.2)
skipping to change at line 84 skipping to change at line 84
ecc_point_clear (&pub); ecc_point_clear (&pub);
dsa_signature_clear (&signature); dsa_signature_clear (&signature);
mpz_clear (x); mpz_clear (x);
mpz_clear (y); mpz_clear (y);
} }
void void
test_main (void) test_main (void)
{ {
/* Corresponds to nonce k = 2 and private key z =
0x99b5b787484def12894ca507058b3bf543d72d82fa7721d2e805e5e6. z and
hash are chosen so that intermediate scalars in the verify
equations are u1 = 0x6b245680e700, u2 =
259da6542d4ba7d21ad916c3bd57f811. These values require canonical
reduction of the scalars. Bug caused by missing canonical
reduction reported by Guido Vranken. */
test_ecdsa (&_nettle_secp_224r1,
"9e7e6cc6b1bdfa8ee039b66ad85e5490"
"7be706a900a3cba1c8fdd014", /* x */
"74855db3f7c1b4097ae095745fc915e3"
"8a79d2a1de28f282eafb22ba", /* y */
SHEX("cdb887ac805a3b42e22d224c85482053"
"16c755d4a736bb2032c92553"),
"706a46dc76dcb76798e60e6d89474788"
"d16dc18032d268fd1a704fa6", /* r */
"3a41e1423b1853e8aa89747b1f987364"
"44705d6d6d8371ea1f578f2e"); /* s */
/* Test case provided by Guido Vranken, from oss-fuzz */ /* Test case provided by Guido Vranken, from oss-fuzz */
test_ecdsa (&_nettle_secp_192r1, test_ecdsa (&_nettle_secp_192r1,
"14683086 f1734c6d e68743a6 48181b54 a74d4c5b 383eb6a8", /* x */ "14683086 f1734c6d e68743a6 48181b54 a74d4c5b 383eb6a8", /* x */
" 1e2584 2ab8b2b0 4017f655 1b5e4058 a2aa0612 2dae9344", /* y */ " 1e2584 2ab8b2b0 4017f655 1b5e4058 a2aa0612 2dae9344", /* y */
SHEX("00"), /* h == 0 corner case*/ SHEX("00"), /* h == 0 corner case*/
"952800792ed19341fdeeec047f2514f3b0f150d6066151fb", /* r */ "952800792ed19341fdeeec047f2514f3b0f150d6066151fb", /* r */
"ec5971222014878b50d7a19d8954bc871e7e65b00b860ffb"); /* s */ "ec5971222014878b50d7a19d8954bc871e7e65b00b860ffb"); /* s */
/* From RFC 4754 */ /* From RFC 4754 */
test_ecdsa (&_nettle_secp_256r1, test_ecdsa (&_nettle_secp_256r1,
 End of changes. 1 change blocks. 
0 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)