From: Dmitry Belyavskiy Date: Thu, 30 Aug 2018 16:07:23 +0000 (+0300) Subject: +unit test, untested yet. X-Git-Tag: v3.0.0~372 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=d8195bfd8d86c542d7505a4f6214f99a5edae220;p=openssl-gost%2Fengine.git +unit test, untested yet. --- diff --git a/gost_keyexpimp.c b/gost_keyexpimp.c index b351ee2..195d3d2 100644 --- a/gost_keyexpimp.c +++ b/gost_keyexpimp.c @@ -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