]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Update comment to match reality
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 4 Sep 2018 13:32:48 +0000 (16:32 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 4 Sep 2018 13:32:48 +0000 (16:32 +0300)
gost_keyexpimp.c

index 5bd3b4abf95b0fcb39e50b0ed68a1017a21cab26..ebd1fa1391e412124cfe757a47f523823446c4d4 100644 (file)
@@ -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,