Skip to content

Commit f6f7c60

Browse files
committed
FEAT: updated CCM (Counter with CBC-MAC) cipher mode
1 parent 6efd1d4 commit f6f7c60

File tree

7 files changed

+2467
-57
lines changed

7 files changed

+2467
-57
lines changed

src/boot/words.reb

+4-1
Original file line numberDiff line numberDiff line change
@@ -347,4 +347,7 @@ aria-128-gcm
347347
aria-192-gcm
348348
aria-256-gcm
349349
chacha20
350-
chacha20-poly1305
350+
chacha20-poly1305
351+
352+
tag-length
353+
aad-length

src/core/mbedtls/ccm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ int mbedtls_ccm_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length,
539539
/*
540540
* Authenticated decryption
541541
*/
542-
static int mbedtls_ccm_compare_tags(const unsigned char *tag1, const unsigned char *tag2, size_t tag_len)
542+
int mbedtls_ccm_compare_tags(const unsigned char *tag1, const unsigned char *tag2, size_t tag_len)
543543
{
544544
unsigned char i;
545545
int diff;

0 commit comments

Comments
 (0)