diff options
author | kokke <spam@rowdy.dk> | 2016-06-15 20:09:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-15 20:09:57 +0200 |
commit | f832b4188e5482c60378bdc5cd4c731450c7bd12 (patch) | |
tree | 8bb574b071e5d377a86af8ea27ab7040f8733b56 /test.c | |
parent | Update README.md (diff) | |
download | tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.tar tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.tar.gz tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.tar.bz2 tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.tar.lz tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.tar.xz tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.tar.zst tiny-AES-c-f832b4188e5482c60378bdc5cd4c731450c7bd12.zip |
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -92,7 +92,7 @@ static void test_encrypt_ecb(void) printf("ECB decrypt: "); - if(0 == strncmp((char*) out, (char*) buffer, 16)) + if(0 == memcmp((char*) out, (char*) buffer, 16)) { printf("SUCCESS!\n"); } @@ -125,7 +125,7 @@ static void test_decrypt_cbc(void) printf("CBC decrypt: "); - if(0 == strncmp((char*) out, (char*) buffer, 64)) + if(0 == memcmp((char*) out, (char*) buffer, 64)) { printf("SUCCESS!\n"); } @@ -153,7 +153,7 @@ static void test_encrypt_cbc(void) printf("CBC encrypt: "); - if(0 == strncmp((char*) out, (char*) buffer, 64)) + if(0 == memcmp((char*) out, (char*) buffer, 64)) { printf("SUCCESS!\n"); } @@ -175,7 +175,7 @@ static void test_decrypt_ecb(void) printf("ECB decrypt: "); - if(0 == strncmp((char*) out, (char*) buffer, 16)) + if(0 == memcmp((char*) out, (char*) buffer, 16)) { printf("SUCCESS!\n"); } |