summaryrefslogtreecommitdiffhomepage
path: root/libtomcrypt/src/modes/ctr/ctr_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtomcrypt/src/modes/ctr/ctr_test.c')
-rw-r--r--libtomcrypt/src/modes/ctr/ctr_test.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libtomcrypt/src/modes/ctr/ctr_test.c b/libtomcrypt/src/modes/ctr/ctr_test.c
index 9962afd..878d425 100644
--- a/libtomcrypt/src/modes/ctr/ctr_test.c
+++ b/libtomcrypt/src/modes/ctr/ctr_test.c
@@ -5,8 +5,6 @@
*
* The library is free for all purposes without any express
* guarantee it works.
- *
- * Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
@@ -52,7 +50,7 @@ int ctr_test(void)
unsigned char buf[64];
symmetric_CTR ctr;
- /* AES can be under rijndael or aes... try to find it */
+ /* AES can be under rijndael or aes... try to find it */
if ((idx = find_cipher("aes")) == -1) {
if ((idx = find_cipher("rijndael")) == -1) {
return CRYPT_NOP;
@@ -67,7 +65,7 @@ int ctr_test(void)
return err;
}
ctr_done(&ctr);
- if (XMEMCMP(buf, tests[x].ct, tests[x].msglen)) {
+ if (compare_testvector(buf, tests[x].msglen, tests[x].ct, tests[x].msglen, "CTR", x)) {
return CRYPT_FAIL_TESTVECTOR;
}
}
@@ -77,9 +75,9 @@ int ctr_test(void)
#endif
-/* $Source$ */
-/* $Revision$ */
-/* $Date$ */
+/* ref: $Format:%D$ */
+/* git commit: $Format:%H$ */
+/* commit time: $Format:%ai$ */