projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c78515f
)
use a more interesting test case
author
Bodo Möller
<bodo@openssl.org>
Fri, 16 Nov 2001 06:22:05 +0000
(06:22 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 16 Nov 2001 06:22:05 +0000
(06:22 +0000)
crypto/ec/ectest.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ectest.c
b/crypto/ec/ectest.c
index 1d0b337b45f51c934664751a4c11eed9f7bb121d..b6ede1c3c6ab004a3e25bff4c480e62b48a0537e 100644
(file)
--- a/
crypto/ec/ectest.c
+++ b/
crypto/ec/ectest.c
@@
-564,10
+564,10
@@
int main(int argc, char *argv[])
fflush(stdout);
if (!BN_pseudo_rand(y, BN_num_bits(y), 0, 0)) ABORT;
- if (!BN_
copy(
z, y)) ABORT;
+ if (!BN_
add(z,
z, y)) ABORT;
z->neg = 1;
scalars[0] = y;
- scalars[1] = z; /* z = -
y
*/
+ scalars[1] = z; /* z = -
(order + y)
*/
if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT;
if (!EC_POINT_is_at_infinity(group, P)) ABORT;