diff options
author | Rich Salz <rsalz@akamai.com> | 2015-08-10 12:45:25 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-08-26 07:00:43 -0400 |
commit | 22dc08d00ae9517048b1ca44cd3810128eba0273 (patch) | |
tree | 49f25f457422749d9888865e1afc8f05c945ed5a /engines/ccgost/gost2001_keyx.c | |
parent | ddcc5e5b60e2e14a7f65cc8faff0642cb68f4343 (diff) | |
download | openssl-22dc08d00ae9517048b1ca44cd3810128eba0273.zip openssl-22dc08d00ae9517048b1ca44cd3810128eba0273.tar.gz openssl-22dc08d00ae9517048b1ca44cd3810128eba0273.tar.bz2 |
BN_bin2bn handle leading zero's
If a binary sequence is all zero's, call BN_zero.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'engines/ccgost/gost2001_keyx.c')
-rw-r--r-- | engines/ccgost/gost2001_keyx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gost2001_keyx.c b/engines/ccgost/gost2001_keyx.c index abbacbb..1fd0174 100644 --- a/engines/ccgost/gost2001_keyx.c +++ b/engines/ccgost/gost2001_keyx.c @@ -35,7 +35,7 @@ static int VKO_compute_key(unsigned char *shared_key, size_t shared_key_size, ukm_be[7 - i] = ukm[i]; } BN_CTX_start(ctx); - UKM = getbnfrombuf(ukm_be, 8); + UKM = BN_bin2bn(ukm_be, 8, NULL); p = BN_CTX_get(ctx); order = BN_CTX_get(ctx); X = BN_CTX_get(ctx); |