]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
test_curves: Fix forgotten comparison in test
authorVitaly Chikunov <vt@altlinux.org>
Sat, 2 Feb 2019 16:41:27 +0000 (19:41 +0300)
committerVitaly Chikunov <vt@altlinux.org>
Sat, 2 Feb 2019 17:29:42 +0000 (20:29 +0300)
test_curves.c

index 7c57c34ae9e496e32563cc520d72df9c29ba6268..d215fe4387bd087643e1720ba829aa4f3a38775a 100644 (file)
@@ -191,6 +191,7 @@ static int parameter_test(struct test_curve *tc)
     BN_add(k2, k2, order);
     T(EC_POINT_mul(group, p1, NULL, generator, k1, ctx));
     T(EC_POINT_mul(group, p2, NULL, generator, k2, ctx));
+    T(EC_POINT_cmp(group, p1, p2, ctx) == 0);
 
     /* Cofactor is 1 or 4 */
     const BIGNUM *c;