X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fec%2Fectest.c;h=53f88c651738648853dbdbe376d783b6b004287f;hp=28e331b6083d6ba94fb087d58c48afee9c735c61;hb=42909e39681bcbaaada696c901bbff472d71dbe2;hpb=c10810802836755d417e122e086067b509331327 diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index 28e331b608..53f88c6517 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -94,9 +94,9 @@ int main(int argc, char *argv[]) b = BN_new(); if (!p || !a || !b) ABORT; - if (!BN_hex2bn(&p, "D")) ABORT; - if (!BN_hex2bn(&a, "7")) ABORT; - if (!BN_hex2bn(&b, "C")) ABORT; + if (!BN_hex2bn(&p, "17")) ABORT; + if (!BN_hex2bn(&a, "1")) ABORT; + if (!BN_hex2bn(&b, "1")) ABORT; group = EC_GROUP_new(EC_GFp_mont_method()); if (!group) ABORT; @@ -130,7 +130,7 @@ int main(int argc, char *argv[]) z = BN_new(); if (!x || !y || !z) ABORT; - if (!BN_hex2bn(&x, "C")) ABORT; + if (!BN_hex2bn(&x, "D")) ABORT; if (!EC_POINT_set_compressed_coordinates_GFp(group, Q, x, 1, ctx)) ABORT; if (!EC_POINT_is_on_curve(group, Q, ctx)) {