Home
last modified time | relevance | path

Searched refs:iv_length (Results 1 – 14 of 14) sorted by relevance

/mbedtls-3.5.0/library/
Dpsa_crypto_cipher.c236 operation->iv_length = PSA_CIPHER_IV_LENGTH(key_type, alg); in psa_cipher_setup()
266 const uint8_t *iv, size_t iv_length) in mbedtls_psa_cipher_set_iv() argument
268 if (iv_length != operation->iv_length) { in mbedtls_psa_cipher_set_iv()
274 iv, iv_length)); in mbedtls_psa_cipher_set_iv()
488 size_t iv_length, in mbedtls_psa_cipher_encrypt() argument
506 if (iv_length > 0) { in mbedtls_psa_cipher_encrypt()
507 status = mbedtls_psa_cipher_set_iv(&operation, iv, iv_length); in mbedtls_psa_cipher_encrypt()
562 if (operation.iv_length > 0) { in mbedtls_psa_cipher_decrypt()
564 input, operation.iv_length); in mbedtls_psa_cipher_decrypt()
572 mbedtls_buffer_offset_const(input, operation.iv_length), in mbedtls_psa_cipher_decrypt()
[all …]
Dpsa_crypto_cipher.h127 const uint8_t *iv, size_t iv_length);
249 size_t iv_length,
Dpsa_crypto_driver_wrappers.c1330 size_t iv_length, in psa_driver_wrapper_cipher_encrypt() argument
1356 iv_length, in psa_driver_wrapper_cipher_encrypt()
1372 iv_length, in psa_driver_wrapper_cipher_encrypt()
1388 iv_length, in psa_driver_wrapper_cipher_encrypt()
1407 iv_length, in psa_driver_wrapper_cipher_encrypt()
1423 (void)iv_length; in psa_driver_wrapper_cipher_encrypt()
1705 size_t iv_length ) in psa_driver_wrapper_cipher_set_iv() argument
1713 iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1721 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1726 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
[all …]
Dpsa_crypto_driver_wrappers.h159 size_t iv_length,
192 size_t iv_length);
Dpsa_crypto.c4032 size_t *iv_length) argument
4070 *iv_length = default_iv_length;
4073 *iv_length = 0;
4082 size_t iv_length) argument
4096 if (iv_length > PSA_CIPHER_IV_MAX_SIZE) {
4103 iv_length);
/mbedtls-3.5.0/tests/src/drivers/
Dtest_driver_cipher.c48 size_t iv_length, in mbedtls_test_transparent_cipher_encrypt() argument
79 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
84 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
220 size_t iv_length) in mbedtls_test_transparent_cipher_set_iv() argument
231 operation, iv, iv_length); in mbedtls_test_transparent_cipher_set_iv()
233 return mbedtls_psa_cipher_set_iv(operation, iv, iv_length); in mbedtls_test_transparent_cipher_set_iv()
324 const uint8_t *iv, size_t iv_length, in mbedtls_test_opaque_cipher_encrypt() argument
333 (void) iv_length; in mbedtls_test_opaque_cipher_encrypt()
399 size_t iv_length) in mbedtls_test_opaque_cipher_set_iv() argument
403 (void) iv_length; in mbedtls_test_opaque_cipher_set_iv()
/mbedtls-3.5.0/tests/include/test/drivers/
Dcipher.h56 const uint8_t *iv, size_t iv_length,
84 const uint8_t *iv, size_t iv_length);
102 const uint8_t *iv, size_t iv_length,
130 const uint8_t *iv, size_t iv_length);
/mbedtls-3.5.0/tests/src/
Dpsa_exercise_key.c161 size_t iv_length; in exercise_cipher_key() local
172 iv_length = PSA_CIPHER_IV_LENGTH(key_type, alg); in exercise_cipher_key()
176 if (iv_length != 0) { in exercise_cipher_key()
179 &iv_length)); in exercise_cipher_key()
199 if (iv_length != 0) { in exercise_cipher_key()
201 iv, iv_length)); in exercise_cipher_key()
/mbedtls-3.5.0/include/psa/
Dcrypto_builtin_primitives.h104 uint8_t MBEDTLS_PRIVATE(iv_length);
Dcrypto.h1881 size_t *iv_length);
1921 size_t iv_length);
Dcrypto_se_driver.h414 size_t iv_length);
/mbedtls-3.5.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.c.jinja1148 size_t iv_length,
1171 iv_length,
1189 iv_length,
1208 iv_length,
1224 (void)iv_length;
1465 size_t iv_length )
1473 iv_length ) );
1481 iv, iv_length ) );
1486 iv, iv_length ) );
1492 (void)iv_length;
/mbedtls-3.5.0/tests/suites/
Dtest_suite_psa_crypto.function3776 size_t iv_length = 0;
3811 &iv_length));
3842 data_t *input, int iv_length,
3864 iv_length));
4535 size_t iv_length = 0;
4562 &iv_length));
4613 if (iv_length > 0) {
4615 iv, iv_length));
Dtest_suite_psa_crypto.data2421 CCM*-no-tag encrypt, iv_length = 14, bad
2425 CCM*-no-tag encrypt, iv_length = 13, good
2429 CCM*-no-tag encrypt, iv_length = 12, bad