mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/sys_crypto_aes_ccm: use CIPHER_AES instead of CIPHER_AES_128
This commit is contained in:
parent
b9f5ffab26
commit
f279a66d82
@ -2186,7 +2186,7 @@ static void test_encrypt_op(const uint8_t *key, uint8_t key_len,
|
||||
TEST_ASSERT_MESSAGE(sizeof(data) >= output_expected_len,
|
||||
"Output buffer too small");
|
||||
|
||||
err = cipher_init(&cipher, CIPHER_AES_128, key, key_len);
|
||||
err = cipher_init(&cipher, CIPHER_AES, key, key_len);
|
||||
TEST_ASSERT_EQUAL_INT(1, err);
|
||||
|
||||
len = cipher_encrypt_ccm(&cipher, adata, adata_len,
|
||||
@ -2214,7 +2214,7 @@ static void test_decrypt_op(const uint8_t *key, uint8_t key_len,
|
||||
TEST_ASSERT_MESSAGE(sizeof(data) >= output_expected_len,
|
||||
"Output buffer too small");
|
||||
|
||||
err = cipher_init(&cipher, CIPHER_AES_128, key, key_len);
|
||||
err = cipher_init(&cipher, CIPHER_AES, key, key_len);
|
||||
TEST_ASSERT_EQUAL_INT(1, err);
|
||||
|
||||
len = cipher_decrypt_ccm(&cipher, adata, adata_len,
|
||||
|
Loading…
Reference in New Issue
Block a user