Home
last modified time | relevance | path

Searched refs:iv_size (Results 1 – 12 of 12) sorted by relevance

/mbedtls-3.5.0/include/mbedtls/
Dcipher.h296 unsigned int MBEDTLS_PRIVATE(iv_size);
346 size_t MBEDTLS_PRIVATE(iv_size);
524 return (size_t) info->MBEDTLS_PRIVATE(iv_size); in mbedtls_cipher_info_get_iv_size()
726 if (ctx->MBEDTLS_PRIVATE(iv_size) != 0) { in mbedtls_cipher_get_iv_size()
727 return (int) ctx->MBEDTLS_PRIVATE(iv_size); in mbedtls_cipher_get_iv_size()
730 return (int) ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(iv_size); in mbedtls_cipher_get_iv_size()
/mbedtls-3.5.0/programs/psa/
Dcrypto_examples.c99 size_t iv_size, in cipher_encrypt() argument
115 status = psa_cipher_generate_iv(&operation, iv, iv_size, &iv_len); in cipher_encrypt()
130 size_t iv_size, in cipher_decrypt() argument
145 status = psa_cipher_set_iv(&operation, iv, iv_size); in cipher_decrypt()
/mbedtls-3.5.0/library/
Dpkcs12.c166 iv, cipher_info->iv_size)) != 0) { in mbedtls_pkcs12_pbe()
182 if ((ret = mbedtls_cipher_set_iv(&cipher_ctx, iv, cipher_info->iv_size)) != 0) { in mbedtls_pkcs12_pbe()
Dcipher.c378 actual_iv_size = ctx->cipher_info->iv_size; in mbedtls_cipher_set_iv()
445 ctx->iv_size = actual_iv_size; in mbedtls_cipher_set_iv()
1366 if ((iv_len != ctx->cipher_info->iv_size) || in mbedtls_cipher_aead_encrypt()
1462 if ((iv_len != ctx->cipher_info->iv_size) || in mbedtls_cipher_aead_decrypt()
Dpkcs5.c189 enc_scheme_params.len != cipher_info->iv_size) { in mbedtls_pkcs5_pbes2()
Dpsa_crypto.c4031 size_t iv_size, argument
4049 if (iv_size < default_iv_length) {
Dssl_tls.c8455 transform->ivlen = cipher_info->iv_size; in ssl_tls12_populate_transform()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_cipher.function18 size_t key_bitlen, block_size, iv_size;
34 iv_size = mbedtls_cipher_info_get_iv_size(info);
38 TEST_ASSERT(iv_size == 0);
68 TEST_ASSERT(iv_size == 0);
72 TEST_ASSERT(iv_size == block_size);
75 TEST_ASSERT(iv_size == block_size - 4);
Dtest_suite_psa_crypto_driver_wrappers.function1034 size_t iv_size = PSA_CIPHER_IV_LENGTH(key_type, alg);
1070 PSA_ASSERT(psa_cipher_set_iv(&operation, output1, iv_size));
1095 ASSERT_COMPARE(output1 + iv_size, output1_length - iv_size,
Dtest_suite_psa_crypto.function3775 size_t iv_size = PSA_CIPHER_IV_MAX_SIZE;
3810 iv, iv_size,
4040 size_t iv_size = PSA_CIPHER_IV_LENGTH(key_type, alg);
4076 PSA_ASSERT(psa_cipher_set_iv(&operation, output1, iv_size));
4099 ASSERT_COMPARE(output1 + iv_size, output1_length - iv_size,
4534 size_t iv_size = 16;
4561 iv, iv_size,
/mbedtls-3.5.0/include/psa/
Dcrypto.h1880 size_t iv_size,
/mbedtls-3.5.0/tests/src/test_helpers/
Dssl_helpers.c1121 CHK(cipher_info->iv_size <= 16); in mbedtls_test_ssl_build_transforms()
1252 ivlen = cipher_info->iv_size; in mbedtls_test_ssl_build_transforms()