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 b[0] = (unsigned char)( ( add_len >> 8 ) & 0xFF ); in ccm_auth_crypt()
225 b[1] = (unsigned char)( ( add_len ) & 0xFF ); in ccm_auth_crypt()
322 const unsigned char *add, size_t add_len, in mbedtls_ccm_star_encrypt_and_tag() argument
328 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_star_encrypt_and_tag()
333 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_star_encrypt_and_tag()
338 const unsigned char *add, size_t add_len, in mbedtls_ccm_encrypt_and_tag() argument
344 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_encrypt_and_tag()
352 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_encrypt_and_tag()
360 const unsigned char *add, size_t add_len, in mbedtls_ccm_star_auth_decrypt() argument
371 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_star_auth_decrypt()
377 iv, iv_len, add, add_len, in mbedtls_ccm_star_auth_decrypt()
398 const unsigned char *add, size_t add_len, in mbedtls_ccm_auth_decrypt() argument
404 CCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_ccm_auth_decrypt()
413 add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_auth_decrypt()