X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_keyexpimp.c;h=ebd1fa1391e412124cfe757a47f523823446c4d4;hb=0097737ac987e4cfa4de161202da6f4f93c7a5d0;hp=5bd3b4abf95b0fcb39e50b0ed68a1017a21cab26;hpb=be65ae82130e6908c88b975597d05f128057a287;p=openssl-gost%2Fengine.git diff --git a/gost_keyexpimp.c b/gost_keyexpimp.c index 5bd3b4a..ebd1fa1 100644 --- a/gost_keyexpimp.c +++ b/gost_keyexpimp.c @@ -83,7 +83,8 @@ int gost_kexp15(const unsigned char *shared_key, const int shared_len, } /* - * Function expects that shared_key is a preallocated 32-bytes buffer + * Function expects that shared_key is a preallocated buffer + * with length defined as expkeylen - mac_len defined by mac_nid * */ int gost_kimp15(const unsigned char *expkey, const size_t expkeylen, int cipher_nid, const unsigned char *cipher_key,