mirror of https://github.com/wolfSSL/wolfssl
fixed aes-ctr test case
This commit is contained in:
parent
8760e6ac3e
commit
d99c5d8e06
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue