X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_ec_keyx.c;fp=gost_ec_keyx.c;h=b82c6f1859e5fe5bf249565e96282c563a9f26a3;hb=7d380ba4ad7be8f47e3610ce7c3586a408d8eac7;hp=cc94d677ed37b5bb9aa5acc4284270824bed86db;hpb=5900ae4498b35f8a8ba03cdc66f92c0bbd9bec06;p=openssl-gost%2Fengine.git 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;