Home
last modified time | relevance | path

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

/third_party/mbedtls/library/
Dpsa_crypto_cipher.c202 operation->iv_length = PSA_CIPHER_IV_LENGTH( key_type, alg ); in psa_cipher_setup()
232 const uint8_t *iv, size_t iv_length ) in mbedtls_psa_cipher_set_iv() argument
234 if( iv_length != operation->iv_length ) in mbedtls_psa_cipher_set_iv()
239 iv, iv_length ) ) ); in mbedtls_psa_cipher_set_iv()
453 size_t iv_length, in mbedtls_psa_cipher_encrypt() argument
470 if( iv_length > 0 ) in mbedtls_psa_cipher_encrypt()
472 status = mbedtls_psa_cipher_set_iv( &operation, iv, iv_length ); in mbedtls_psa_cipher_encrypt()
522 if( operation.iv_length > 0 ) in mbedtls_psa_cipher_decrypt()
525 input, operation.iv_length ); in mbedtls_psa_cipher_decrypt()
530 status = mbedtls_psa_cipher_update( &operation, 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.c877 size_t iv_length, in psa_driver_wrapper_cipher_encrypt() argument
900 iv_length, in psa_driver_wrapper_cipher_encrypt()
918 iv_length, in psa_driver_wrapper_cipher_encrypt()
937 iv_length, in psa_driver_wrapper_cipher_encrypt()
953 (void)iv_length; in psa_driver_wrapper_cipher_encrypt()
1193 size_t iv_length ) in psa_driver_wrapper_cipher_set_iv() argument
1201 iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1209 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1214 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1220 (void)iv_length; in psa_driver_wrapper_cipher_set_iv()
Dpsa_crypto_driver_wrappers.h123 size_t iv_length,
156 size_t iv_length );
Dpsa_crypto.c3356 size_t *iv_length ) in psa_cipher_generate_iv() argument
3398 *iv_length = default_iv_length; in psa_cipher_generate_iv()
3403 *iv_length = 0; in psa_cipher_generate_iv()
3412 size_t iv_length ) in psa_cipher_set_iv() argument
3428 if( iv_length > PSA_CIPHER_IV_MAX_SIZE ) in psa_cipher_set_iv()
3436 iv_length ); in psa_cipher_set_iv()
/third_party/mbedtls/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()
/third_party/mbedtls/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);
/third_party/mbedtls/include/psa/
Dcrypto_builtin_primitives.h107 uint8_t MBEDTLS_PRIVATE(iv_length);
Dcrypto.h1897 size_t *iv_length);
1938 size_t iv_length);
Dcrypto_se_driver.h414 size_t iv_length);
/third_party/mbedtls/tests/src/
Dpsa_exercise_key.c168 size_t iv_length = sizeof( iv ); in exercise_cipher_key() local
180 &iv_length ) ); in exercise_cipher_key()
202 iv_length = PSA_BLOCK_CIPHER_BLOCK_LENGTH( in exercise_cipher_key()
209 iv, iv_length ) ); in exercise_cipher_key()
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto.function2868 data_t *input, int iv_length,
2890 iv_length ) );
2912 size_t iv_length;
2935 &iv_length ),
3461 size_t iv_length = 0;
3489 &iv_length ) );
3540 if( iv_length > 0 )
3543 iv, iv_length ) );
Dtest_suite_psa_crypto.data2210 CCM*-no-tag encrypt, iv_length = 14, bad
2214 CCM*-no-tag encrypt, iv_length = 13, good
2218 CCM*-no-tag encrypt, iv_length = 12, bad