Home
last modified time | relevance | path

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

/mbedtls-3.4.0/library/
Dpsa_crypto_cipher.c234 operation->iv_length = PSA_CIPHER_IV_LENGTH( key_type, alg ); in psa_cipher_setup()
264 const uint8_t *iv, size_t iv_length ) in mbedtls_psa_cipher_set_iv() argument
266 if( iv_length != operation->iv_length ) in mbedtls_psa_cipher_set_iv()
271 iv, iv_length ) ) ); in mbedtls_psa_cipher_set_iv()
489 size_t iv_length, in mbedtls_psa_cipher_encrypt() argument
506 if( iv_length > 0 ) in mbedtls_psa_cipher_encrypt()
508 status = mbedtls_psa_cipher_set_iv( &operation, iv, iv_length ); in mbedtls_psa_cipher_encrypt()
558 if( operation.iv_length > 0 ) in mbedtls_psa_cipher_decrypt()
561 input, operation.iv_length ); in mbedtls_psa_cipher_decrypt()
568 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.c1078 size_t iv_length, in psa_driver_wrapper_cipher_encrypt() argument
1104 iv_length, in psa_driver_wrapper_cipher_encrypt()
1120 iv_length, in psa_driver_wrapper_cipher_encrypt()
1136 iv_length, in psa_driver_wrapper_cipher_encrypt()
1155 iv_length, in psa_driver_wrapper_cipher_encrypt()
1171 (void)iv_length; in psa_driver_wrapper_cipher_encrypt()
1452 size_t iv_length ) in psa_driver_wrapper_cipher_set_iv() argument
1460 iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1468 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1473 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
[all …]
Dpsa_crypto_driver_wrappers.h122 size_t iv_length,
155 size_t iv_length );
Dpsa_crypto.c3233 size_t *iv_length ) in psa_cipher_generate_iv() argument
3275 *iv_length = default_iv_length; in psa_cipher_generate_iv()
3280 *iv_length = 0; in psa_cipher_generate_iv()
3289 size_t iv_length ) in psa_cipher_set_iv() argument
3305 if( iv_length > PSA_CIPHER_IV_MAX_SIZE ) in psa_cipher_set_iv()
3313 iv_length ); in psa_cipher_set_iv()
/mbedtls-3.4.0/tests/src/drivers/
Dtest_driver_cipher.c48 size_t iv_length, in mbedtls_test_transparent_cipher_encrypt() argument
78 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
83 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
216 size_t iv_length) in mbedtls_test_transparent_cipher_set_iv() argument
226 operation, iv, iv_length ) ); in mbedtls_test_transparent_cipher_set_iv()
228 return( mbedtls_psa_cipher_set_iv( operation, iv, iv_length ) ); in mbedtls_test_transparent_cipher_set_iv()
317 const uint8_t *iv, size_t iv_length, in mbedtls_test_opaque_cipher_encrypt() argument
326 (void) iv_length; in mbedtls_test_opaque_cipher_encrypt()
392 size_t iv_length) in mbedtls_test_opaque_cipher_set_iv() argument
396 (void) iv_length; in mbedtls_test_opaque_cipher_set_iv()
/mbedtls-3.4.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.4.0/tests/src/
Dpsa_exercise_key.c168 size_t iv_length; in exercise_cipher_key() local
179 iv_length = PSA_CIPHER_IV_LENGTH( key_type, alg ); in exercise_cipher_key()
184 if( iv_length != 0 ) in exercise_cipher_key()
188 &iv_length ) ); in exercise_cipher_key()
210 if( iv_length != 0 ) in exercise_cipher_key()
213 iv, iv_length ) ); in exercise_cipher_key()
/mbedtls-3.4.0/include/psa/
Dcrypto_builtin_primitives.h106 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.4.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.c.jinja902 size_t iv_length,
925 iv_length,
943 iv_length,
962 iv_length,
978 (void)iv_length;
1218 size_t iv_length )
1226 iv_length ) );
1234 iv, iv_length ) );
1239 iv, iv_length ) );
1245 (void)iv_length;
/mbedtls-3.4.0/tests/suites/
Dtest_suite_psa_crypto.function3832 size_t iv_length = 0;
3870 &iv_length ) );
3906 data_t *input, int iv_length,
3928 iv_length ) );
4617 size_t iv_length = 0;
4645 &iv_length ) );
4696 if( iv_length > 0 )
4699 iv, iv_length ) );
Dtest_suite_psa_crypto.data2418 CCM*-no-tag encrypt, iv_length = 14, bad
2422 CCM*-no-tag encrypt, iv_length = 13, good
2426 CCM*-no-tag encrypt, iv_length = 12, bad