Home
last modified time | relevance | path

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

/mbedtls-latest/tests/src/drivers/
Dtest_driver_cipher.c36 size_t iv_length, in mbedtls_test_transparent_cipher_encrypt() argument
71 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
76 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
212 size_t iv_length) in mbedtls_test_transparent_cipher_set_iv() argument
227 operation, iv, iv_length); in mbedtls_test_transparent_cipher_set_iv()
229 return mbedtls_psa_cipher_set_iv(operation, iv, iv_length); in mbedtls_test_transparent_cipher_set_iv()
320 const uint8_t *iv, size_t iv_length, in mbedtls_test_opaque_cipher_encrypt() argument
329 (void) iv_length; in mbedtls_test_opaque_cipher_encrypt()
395 size_t iv_length) in mbedtls_test_opaque_cipher_set_iv() argument
399 (void) iv_length; in mbedtls_test_opaque_cipher_set_iv()
/mbedtls-latest/library/
Dpsa_crypto_cipher.c354 operation->iv_length = PSA_CIPHER_IV_LENGTH(key_type, alg); in psa_cipher_setup()
384 const uint8_t *iv, size_t iv_length) in mbedtls_psa_cipher_set_iv() argument
386 if (iv_length != operation->iv_length) { in mbedtls_psa_cipher_set_iv()
392 iv, iv_length)); in mbedtls_psa_cipher_set_iv()
610 size_t iv_length, in mbedtls_psa_cipher_encrypt() argument
628 if (iv_length > 0) { in mbedtls_psa_cipher_encrypt()
629 status = mbedtls_psa_cipher_set_iv(&operation, iv, iv_length); in mbedtls_psa_cipher_encrypt()
684 if (operation.iv_length > 0) { in mbedtls_psa_cipher_decrypt()
686 input, operation.iv_length); in mbedtls_psa_cipher_decrypt()
694 mbedtls_buffer_offset_const(input, operation.iv_length), in mbedtls_psa_cipher_decrypt()
[all …]
Dpsa_crypto_cipher.h138 const uint8_t *iv, size_t iv_length);
260 size_t iv_length,
Dpsa_crypto_driver_wrappers.h1199 size_t iv_length, in psa_driver_wrapper_cipher_encrypt() argument
1225 iv_length, in psa_driver_wrapper_cipher_encrypt()
1241 iv_length, in psa_driver_wrapper_cipher_encrypt()
1257 iv_length, in psa_driver_wrapper_cipher_encrypt()
1276 iv_length, in psa_driver_wrapper_cipher_encrypt()
1292 (void)iv_length; in psa_driver_wrapper_cipher_encrypt()
1574 size_t iv_length ) in psa_driver_wrapper_cipher_set_iv() argument
1582 iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1590 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1595 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
[all …]
Dpsa_crypto.c4388 size_t *iv_length) argument
4428 *iv_length = default_iv_length;
4431 *iv_length = 0;
4444 size_t iv_length) argument
4460 if (iv_length > PSA_CIPHER_IV_MAX_SIZE) {
4465 LOCAL_INPUT_ALLOC(iv_external, iv_length, iv);
4469 iv_length);
/mbedtls-latest/tests/include/test/drivers/
Dcipher.h50 const uint8_t *iv, size_t iv_length,
78 const uint8_t *iv, size_t iv_length);
96 const uint8_t *iv, size_t iv_length,
124 const uint8_t *iv, size_t iv_length);
/mbedtls-latest/tests/src/
Dpsa_exercise_key.c182 size_t iv_length; in exercise_cipher_key() local
194 iv_length = PSA_CIPHER_IV_LENGTH(key_type, alg); in exercise_cipher_key()
204 if (iv_length != 0) { in exercise_cipher_key()
207 &iv_length)); in exercise_cipher_key()
232 if (iv_length != 0) { in exercise_cipher_key()
234 iv, iv_length)); in exercise_cipher_key()
/mbedtls-latest/include/psa/
Dcrypto_builtin_primitives.h104 uint8_t MBEDTLS_PRIVATE(iv_length);
Dcrypto.h1879 size_t *iv_length);
1919 size_t iv_length);
Dcrypto_se_driver.h402 size_t iv_length);
/mbedtls-latest/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja1039 size_t iv_length,
1062 iv_length,
1080 iv_length,
1099 iv_length,
1115 (void)iv_length;
1356 size_t iv_length )
1364 iv_length ) );
1372 iv, iv_length ) );
1377 iv, iv_length ) );
1383 (void)iv_length;
/mbedtls-latest/tests/suites/
Dtest_suite_psa_crypto.function4124 size_t iv_length = 0;
4159 &iv_length));
4190 data_t *input, int iv_length,
4212 iv_length));
4883 size_t iv_length = 0;
4910 &iv_length));
4962 if (iv_length > 0) {
4964 iv, iv_length));
Dtest_suite_psa_crypto.data2587 CCM*-no-tag encrypt, iv_length = 14, bad
2591 CCM*-no-tag encrypt, iv_length = 13, good
2595 CCM*-no-tag encrypt, iv_length = 12, bad