Commit f832b418 authored by kokke's avatar kokke Committed by GitHub
Browse files

s/strncmp/memcmp/g

parent 7e42e693
...@@ -92,7 +92,7 @@ static void test_encrypt_ecb(void) ...@@ -92,7 +92,7 @@ static void test_encrypt_ecb(void)
printf("ECB decrypt: "); printf("ECB decrypt: ");
if(0 == strncmp((char*) out, (char*) buffer, 16)) if(0 == memcmp((char*) out, (char*) buffer, 16))
{ {
printf("SUCCESS!\n"); printf("SUCCESS!\n");
} }
...@@ -125,7 +125,7 @@ static void test_decrypt_cbc(void) ...@@ -125,7 +125,7 @@ static void test_decrypt_cbc(void)
printf("CBC decrypt: "); printf("CBC decrypt: ");
if(0 == strncmp((char*) out, (char*) buffer, 64)) if(0 == memcmp((char*) out, (char*) buffer, 64))
{ {
printf("SUCCESS!\n"); printf("SUCCESS!\n");
} }
...@@ -153,7 +153,7 @@ static void test_encrypt_cbc(void) ...@@ -153,7 +153,7 @@ static void test_encrypt_cbc(void)
printf("CBC encrypt: "); printf("CBC encrypt: ");
if(0 == strncmp((char*) out, (char*) buffer, 64)) if(0 == memcmp((char*) out, (char*) buffer, 64))
{ {
printf("SUCCESS!\n"); printf("SUCCESS!\n");
} }
...@@ -175,7 +175,7 @@ static void test_decrypt_ecb(void) ...@@ -175,7 +175,7 @@ static void test_decrypt_ecb(void)
printf("ECB decrypt: "); printf("ECB decrypt: ");
if(0 == strncmp((char*) out, (char*) buffer, 16)) if(0 == memcmp((char*) out, (char*) buffer, 16))
{ {
printf("SUCCESS!\n"); printf("SUCCESS!\n");
} }
......
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