diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-10-15 17:32:57 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-10-15 17:32:57 +0000 |
commit | 58ab7656b2c140e06d60a7831a9f5b6e1ddc2fe5 (patch) | |
tree | 6195ffd39cd3e0b3d6c711f6531b3e7e13b85b44 /crypto/ec/ectest.c | |
parent | cb6864802ed26a1031701a6a385961592a5cac25 (diff) | |
download | src-58ab7656b2c140e06d60a7831a9f5b6e1ddc2fe5.tar.gz src-58ab7656b2c140e06d60a7831a9f5b6e1ddc2fe5.zip |
Import OpenSSL 1.0.1j.vendor/openssl/1.0.1j
Notes
Notes:
svn path=/vendor-crypto/openssl/dist/; revision=273138
svn path=/vendor-crypto/openssl/1.0.1j/; revision=273139; tag=vendor/openssl/1.0.1j
Diffstat (limited to 'crypto/ec/ectest.c')
-rw-r--r-- | crypto/ec/ectest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index 82c8c8bfb119..d1bf980599c8 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -251,14 +251,15 @@ static void group_order_tests(EC_GROUP *group) if (!EC_POINT_is_at_infinity(group, Q)) ABORT; /* Exercise EC_POINTs_mul, including corner cases. */ + if (EC_POINT_is_at_infinity(group, P)) ABORT; scalars[0] = n1; points[0] = Q; /* => infinity */ scalars[1] = n2; points[1] = P; /* => -P */ scalars[2] = n1; points[2] = Q; /* => infinity */ scalars[3] = n2; points[3] = Q; /* => infinity */ scalars[4] = n1; points[4] = P; /* => P */ scalars[5] = n2; points[5] = Q; /* => infinity */ - if (!EC_POINTs_mul(group, Q, NULL, 5, points, scalars, ctx)) ABORT; - if (!EC_POINT_is_at_infinity(group, Q)) ABORT; + if (!EC_POINTs_mul(group, P, NULL, 6, points, scalars, ctx)) ABORT; + if (!EC_POINT_is_at_infinity(group, P)) ABORT; } fprintf(stdout, "ok\n"); |