Lines Matching refs:add_len
150 const unsigned char *add, size_t add_len, in ccm_auth_crypt() argument
178 if( add_len >= 0xFF00 ) in ccm_auth_crypt()
196 b[0] |= ( add_len > 0 ) << 6; in ccm_auth_crypt()
217 if( add_len > 0 ) in ccm_auth_crypt()
220 len_left = add_len; in ccm_auth_crypt()
224 MBEDTLS_PUT_UINT16_BE( add_len, b, 0 ); in ccm_auth_crypt()
321 const unsigned char *add, size_t add_len, in mbedtls_ccm_star_encrypt_and_tag() argument
327 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
332 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_star_encrypt_and_tag()
337 const unsigned char *add, size_t add_len, in mbedtls_ccm_encrypt_and_tag() argument
343 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_encrypt_and_tag()
351 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag()
359 const unsigned char *add, size_t add_len, in mbedtls_ccm_star_auth_decrypt() argument
370 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_star_auth_decrypt()
376 iv, iv_len, add, add_len, in mbedtls_ccm_star_auth_decrypt()
397 const unsigned char *add, size_t add_len, in mbedtls_ccm_auth_decrypt() argument
403 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_auth_decrypt()
412 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_auth_decrypt()