Permalink
Browse files

fixed aes-ctr test case

  • Loading branch information...
1 parent 8760e6a commit d99c5d8e0625dac7b9b0fd984339e4488bc81e34 @ejohnstown ejohnstown committed Oct 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ctaocrypt/test/test.c
View
@@ -1230,9 +1230,9 @@ int aes_test(void)
0x79,0x21,0x70,0xa0,0xf3,0x00,0x9c,0xee
};
- AesSetKey(&enc, ctrKey, AES_BLOCK_SIZE, ctrIv, AES_ENCRYPTION);
+ AesSetKeyDirect(&enc, ctrKey, AES_BLOCK_SIZE, ctrIv, AES_ENCRYPTION);
/* Ctr only uses encrypt, even on key setup */
- AesSetKey(&dec, ctrKey, AES_BLOCK_SIZE, ctrIv, AES_ENCRYPTION);
+ AesSetKeyDirect(&dec, ctrKey, AES_BLOCK_SIZE, ctrIv, AES_ENCRYPTION);
AesCtrEncrypt(&enc, cipher, ctrPlain, AES_BLOCK_SIZE*4);
AesCtrEncrypt(&dec, plain, cipher, AES_BLOCK_SIZE*4);

0 comments on commit d99c5d8

Please sign in to comment.