diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-09-04 14:41:01 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-09-04 14:41:01 +0300 |
commit | e55323c4c29e6b2645e7e7357453c34fb9a42440 (patch) | |
tree | 59c90e8b4410f5ea5cd281907d2a95f840988410 /gost_lcl.h | |
parent | fd12b88c3392a300d94421f62cf870be8d4ef430 (diff) | |
download | gost-engine-e55323c4c29e6b2645e7e7357453c34fb9a42440.zip gost-engine-e55323c4c29e6b2645e7e7357453c34fb9a42440.tar.gz gost-engine-e55323c4c29e6b2645e7e7357453c34fb9a42440.tar.bz2 |
GOST key export, separate function
Diffstat (limited to 'gost_lcl.h')
-rw-r--r-- | gost_lcl.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -272,6 +272,17 @@ int gost_kdftree2012_256(unsigned char *keyout, size_t keyout_len, const unsigned char *label, size_t label_len, const unsigned char *seed, size_t seed_len, const size_t representation); +/* KExp/KImp */ +int gost_kexp15(const unsigned char *shared_key, const int shared_len, + int cipher_nid, const unsigned char *cipher_key, + int mac_nid, unsigned char *mac_key, + const unsigned char *iv, const size_t ivlen, + unsigned char *out, int *out_len); +int gost_kimp15(const unsigned char *expkey, const size_t expkeylen, + int cipher_nid, const unsigned char *cipher_key, + int mac_nid, unsigned char *mac_key, + const unsigned char *iv, const size_t ivlen, + unsigned char *shared_key, size_t shared_len); /*============== miscellaneous functions============================= */ /* from gost_sign.c */ /* Convert GOST R 34.11 hash sum to bignum according to standard */ |