aboutsummaryrefslogtreecommitdiff
path: root/gost_ec_keyx.c
diff options
context:
space:
mode:
authorDmitry Timoshkov <dmitry@baikal.ru>2019-09-04 11:45:42 +0800
committerDmitry Timoshkov <dmitry@baikal.ru>2019-09-05 15:06:56 +0800
commit7d380ba4ad7be8f47e3610ce7c3586a408d8eac7 (patch)
tree5535d34d3c9a6b5411afb6a22433dafcd5342ae4 /gost_ec_keyx.c
parent5900ae4498b35f8a8ba03cdc66f92c0bbd9bec06 (diff)
downloadgost-engine-7d380ba4ad7be8f47e3610ce7c3586a408d8eac7.zip
gost-engine-7d380ba4ad7be8f47e3610ce7c3586a408d8eac7.tar.gz
gost-engine-7d380ba4ad7be8f47e3610ce7c3586a408d8eac7.tar.bz2
Make VKO_compute_key public.
Diffstat (limited to 'gost_ec_keyx.c')
-rw-r--r--gost_ec_keyx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c
index cc94d67..b82c6f1 100644
--- a/gost_ec_keyx.c
+++ b/gost_ec_keyx.c
@@ -18,10 +18,10 @@
#include "gost_lcl.h"
/* Implementation of CryptoPro VKO 34.10-2001/2012 algorithm */
-static int VKO_compute_key(unsigned char *shared_key,
- const EC_POINT *pub_key, const EC_KEY *priv_key,
- const unsigned char *ukm, const size_t ukm_size,
- const int vko_dgst_nid)
+int VKO_compute_key(unsigned char *shared_key,
+ const EC_POINT *pub_key, const EC_KEY *priv_key,
+ const unsigned char *ukm, const size_t ukm_size,
+ const int vko_dgst_nid)
{
unsigned char *databuf = NULL;
BIGNUM *UKM = NULL, *p = NULL, *order = NULL, *X = NULL, *Y = NULL, *cofactor = NULL;