mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Refactor to prepare for CCM decryption
This commit is contained in:
parent
9322e49037
commit
002323340a
3 changed files with 94 additions and 17 deletions
|
|
@ -62,7 +62,7 @@ void ccm_encrypt_and_tag( int cipher_id,
|
|||
|
||||
TEST_ASSERT( ccm_init( &ctx, cipher_id, key, key_len * 8 ) == 0 );
|
||||
|
||||
TEST_ASSERT( ccm_crypt_and_tag( &ctx, msg_len, iv, iv_len, add, add_len,
|
||||
TEST_ASSERT( ccm_encrypt_and_tag( &ctx, msg_len, iv, iv_len, add, add_len,
|
||||
msg, output, output + msg_len, tag_len ) == 0 );
|
||||
|
||||
TEST_ASSERT( memcmp( output, result, result_len ) == 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue