projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BN_bin2bn handle leading zero's
[openssl.git]
/
engines
/
ccgost
/
gost2001_keyx.c
diff --git
a/engines/ccgost/gost2001_keyx.c
b/engines/ccgost/gost2001_keyx.c
index abbacbb40ffa492a6740c759a693caa35f9201c5..1fd01744364889a0e6eaa576a2491f63a421020a 100644
(file)
--- 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);