D | crypto_mbedtls.c | 713 mbedtls_ccm_context ccm; in aes_ccm_ae() local 715 mbedtls_ccm_init(&ccm); in aes_ccm_ae() 717 ret = mbedtls_ccm_setkey(&ccm, MBEDTLS_CIPHER_ID_AES, in aes_ccm_ae() 724 ret = mbedtls_ccm_encrypt_and_tag(&ccm, plain_len, nonce, 13, aad, in aes_ccm_ae() 728 mbedtls_ccm_free(&ccm); in aes_ccm_ae() 739 mbedtls_ccm_context ccm; in aes_ccm_ad() local 741 mbedtls_ccm_init(&ccm); in aes_ccm_ad() 743 ret = mbedtls_ccm_setkey(&ccm, MBEDTLS_CIPHER_ID_AES, in aes_ccm_ad() 749 ret = mbedtls_ccm_star_auth_decrypt(&ccm, crypt_len, in aes_ccm_ad() 754 mbedtls_ccm_free(&ccm); in aes_ccm_ad()
|