]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
+unit test, untested yet.
authorDmitry Belyavskiy <beldmit@gmail.com>
Thu, 30 Aug 2018 16:07:23 +0000 (19:07 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Thu, 30 Aug 2018 16:07:23 +0000 (19:07 +0300)
gost_keyexpimp.c

index b351ee255fa915507d06cc6d52aeac10a2c4ebda..195d3d209b4d87ec695b18801514320879d9d8d7 100644 (file)
@@ -124,13 +124,14 @@ int main(void)
 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
     };
 
-    const unsigned char magma_key[] = {
+    unsigned char mac_key[] = {
 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F,
     };
 
+               const unsigned char iv[] = {0x67, 0xBE, 0xD6, 0x54};
 
     unsigned char buf[32+8];
     int ret;
@@ -142,6 +143,7 @@ int main(void)
     iv, 4,
     buf, &outlen);
 
+  return 0;
 }
 
 #endif