aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-08-30 19:07:23 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-08-30 19:07:23 +0300
commitd8195bfd8d86c542d7505a4f6214f99a5edae220 (patch)
tree12cb96c44611e69a0f52b1065b2e6318d01ef289
parent43a4efa4aab75623b4e34e9677b21ee3db30f20d (diff)
downloadgost-engine-d8195bfd8d86c542d7505a4f6214f99a5edae220.zip
gost-engine-d8195bfd8d86c542d7505a4f6214f99a5edae220.tar.gz
gost-engine-d8195bfd8d86c542d7505a4f6214f99a5edae220.tar.bz2
+unit test, untested yet.
-rw-r--r--gost_keyexpimp.c4
1 files changed, 3 insertions, 1 deletions
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