projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bn/asm/rsaz-avx2.pl: Windows-specific fix.
[oweals/openssl.git]
/
crypto
/
bn
/
bn_mpi.c
diff --git
a/crypto/bn/bn_mpi.c
b/crypto/bn/bn_mpi.c
index 80e1dca6b73430371caea39456d1b0381c78b2b0..a054d21aed6b9a0cb04b384320ddd2fc6d6bfcbf 100644
(file)
--- a/
crypto/bn/bn_mpi.c
+++ b/
crypto/bn/bn_mpi.c
@@
-88,7
+88,7
@@
int BN_bn2mpi(const BIGNUM *a, unsigned char *d)
return(num+4+ext);
}
-BIGNUM *BN_mpi2bn(unsigned char *d, int n, BIGNUM *a)
+BIGNUM *BN_mpi2bn(
const
unsigned char *d, int n, BIGNUM *a)
{
long len;
int neg=0;
@@
-124,6
+124,7
@@
BIGNUM *BN_mpi2bn(unsigned char *d, int n, BIGNUM *a)
{
BN_clear_bit(a,BN_num_bits(a)-1);
}
+ bn_check_top(a);
return(a);
}