Lines Matching refs:iv_len
412 size_t iv_len ) in mbedtls_cipher_set_iv() argument
417 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_set_iv()
431 if( iv_len > MBEDTLS_MAX_IV_LENGTH ) in mbedtls_cipher_set_iv()
435 actual_iv_size = iv_len; in mbedtls_cipher_set_iv()
441 if( actual_iv_size > iv_len ) in mbedtls_cipher_set_iv()
1238 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_crypt() argument
1246 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_crypt()
1288 status = psa_cipher_set_iv( &cipher_op, iv, iv_len ); in mbedtls_cipher_crypt()
1309 if( ( ret = mbedtls_cipher_set_iv( ctx, iv, iv_len ) ) != 0 ) in mbedtls_cipher_crypt()
1334 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_aead_encrypt() argument
1360 iv, iv_len, in mbedtls_cipher_aead_encrypt()
1377 ilen, iv, iv_len, ad, ad_len, in mbedtls_cipher_aead_encrypt()
1386 iv, iv_len, ad, ad_len, input, output, in mbedtls_cipher_aead_encrypt()
1394 if ( ( iv_len != ctx->cipher_info->iv_size ) || in mbedtls_cipher_aead_encrypt()
1414 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_aead_decrypt() argument
1440 iv, iv_len, in mbedtls_cipher_aead_decrypt()
1460 iv, iv_len, ad, ad_len, in mbedtls_cipher_aead_decrypt()
1476 iv, iv_len, ad, ad_len, in mbedtls_cipher_aead_decrypt()
1491 if ( ( iv_len != ctx->cipher_info->iv_size ) || in mbedtls_cipher_aead_decrypt()
1516 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_auth_encrypt() argument
1523 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_auth_encrypt()
1530 return( mbedtls_cipher_aead_encrypt( ctx, iv, iv_len, ad, ad_len, in mbedtls_cipher_auth_encrypt()
1539 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_auth_decrypt() argument
1546 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_auth_decrypt()
1553 return( mbedtls_cipher_aead_decrypt( ctx, iv, iv_len, ad, ad_len, in mbedtls_cipher_auth_decrypt()
1565 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_auth_encrypt_ext() argument
1572 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_auth_encrypt_ext()
1591 if( iv_len != 0 || tag_len != 0 || ad_len != 0 ) in mbedtls_cipher_auth_encrypt_ext()
1607 int ret = mbedtls_cipher_aead_encrypt( ctx, iv, iv_len, ad, ad_len, in mbedtls_cipher_auth_encrypt_ext()
1621 const unsigned char *iv, size_t iv_len, in mbedtls_cipher_auth_decrypt_ext() argument
1628 CIPHER_VALIDATE_RET( iv_len == 0 || iv != NULL ); in mbedtls_cipher_auth_decrypt_ext()
1647 if( iv_len != 0 || tag_len != 0 || ad_len != 0 ) in mbedtls_cipher_auth_decrypt_ext()
1663 return( mbedtls_cipher_aead_decrypt( ctx, iv, iv_len, ad, ad_len, in mbedtls_cipher_auth_decrypt_ext()