Commit 0d724cc1 authored by kokke's avatar kokke
Browse files

Update test.c

parent a50ee935
...@@ -51,18 +51,8 @@ static void test_ECB(void) ...@@ -51,18 +51,8 @@ static void test_ECB(void)
phex(buf + (i*16)); phex(buf + (i*16));
} }
printf("\n"); printf("\n");
// print the resulting cipher as 4 x 16 byte strings
printf("back to plain text again:\n");
for(i = 0; i < 4; ++i)
{
AES128_ECB(buf + (i*16), key, buf2+(i*16));
phex(plain_text + (i*16));
}
printf("\n");
} }
// prints string as hex // prints string as hex
void phex(uint8_t* str) void phex(uint8_t* str)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment