diff options
author | Dmitry Timoshkov <dmitry@baikal.ru> | 2019-09-04 11:45:42 +0800 |
---|---|---|
committer | Dmitry Timoshkov <dmitry@baikal.ru> | 2019-09-05 15:06:56 +0800 |
commit | 7d380ba4ad7be8f47e3610ce7c3586a408d8eac7 (patch) | |
tree | 5535d34d3c9a6b5411afb6a22433dafcd5342ae4 /gost_lcl.h | |
parent | 5900ae4498b35f8a8ba03cdc66f92c0bbd9bec06 (diff) | |
download | gost-engine-7d380ba4ad7be8f47e3610ce7c3586a408d8eac7.zip gost-engine-7d380ba4ad7be8f47e3610ce7c3586a408d8eac7.tar.gz gost-engine-7d380ba4ad7be8f47e3610ce7c3586a408d8eac7.tar.bz2 |
Make VKO_compute_key public.
Diffstat (limited to 'gost_lcl.h')
-rw-r--r-- | gost_lcl.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -265,6 +265,12 @@ int gost_ec_verify(const unsigned char *dgst, int dgst_len, ECDSA_SIG *sig, EC_KEY *ec); int gost_ec_compute_public(EC_KEY *ec); +/* VKO */ +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); + /* KDF TREE */ int gost_kdftree2012_256(unsigned char *keyout, size_t keyout_len, const unsigned char *key, size_t keylen, |