projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Variety of belt-tightenings in the bignum code. (Please help test this!)
[openssl.git]
/
crypto
/
bn
/
bn_sqr.c
diff --git
a/crypto/bn/bn_sqr.c
b/crypto/bn/bn_sqr.c
index 8831daa390a7be5cdbb0bc7815cfb6ebe0efb6b1..3b4b3f0d38350d642c0e83b6597e218dea3766da 100644
(file)
--- a/
crypto/bn/bn_sqr.c
+++ b/
crypto/bn/bn_sqr.c
@@
-86,7
+86,7
@@
int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
if (!rr || !tmp) goto err;
max = 2 * al; /* Non-zero (from above) */
- if (bn_wexpand(rr,max
+1
) == NULL) goto err;
+ if (bn_wexpand(rr,max) == NULL) goto err;
if (al == 4)
{