Home
last modified time | relevance | path

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

/third_party/mbedtls/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.c1163 size_t iv_length, in psa_driver_wrapper_cipher_encrypt() argument
1186 iv_length, in psa_driver_wrapper_cipher_encrypt()
1204 iv_length, in psa_driver_wrapper_cipher_encrypt()
1223 iv_length, in psa_driver_wrapper_cipher_encrypt()
1239 (void)iv_length; in psa_driver_wrapper_cipher_encrypt()
1480 size_t iv_length ) in psa_driver_wrapper_cipher_set_iv() argument
1488 iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1496 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1501 iv, iv_length ) ); in psa_driver_wrapper_cipher_set_iv()
1507 (void)iv_length; in psa_driver_wrapper_cipher_set_iv()
Dpsa_crypto_driver_wrappers.h159 size_t iv_length,
192 size_t iv_length);
Dpsa_crypto.c4003 size_t *iv_length) in psa_cipher_generate_iv() argument
4041 *iv_length = default_iv_length; in psa_cipher_generate_iv()
4044 *iv_length = 0; in psa_cipher_generate_iv()
4053 size_t iv_length) in psa_cipher_set_iv() argument
4067 if (iv_length > PSA_CIPHER_IV_MAX_SIZE) { in psa_cipher_set_iv()
4074 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
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()
/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/rust/crates/rust-openssl/openssl/src/
Dcipher_ctx.rs167 let iv_len = type_.map_or_else(|| self.iv_length(), |c| c.iv_length()); in cipher_init()
210 let iv_len = type_.map_or_else(|| self.iv_length(), |c| c.iv_length()); in seal_init()
266 let iv_len = type_.map_or_else(|| self.iv_length(), |c| c.iv_length()); in open_init()
371 pub fn iv_length(&self) -> usize { in iv_length() method
740 let mut iv = vec![0; cipher.iv_length()]; in seal_open()
815 let mut iv = vec![0; cipher.iv_length()]; in test_stream_cipher()
927 let mut iv = vec![0; cipher.iv_length()]; in output_buffer_too_small()
Dcipher.rs523 pub fn iv_length(&self) -> usize { in iv_length() method
/third_party/mbedtls/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()
/third_party/mbedtls/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);
/third_party/node/src/crypto/
Dcrypto_cipher.cc75 int iv_length = EVP_CIPHER_iv_length(cipher); in GetCipherInfo() local
136 if (check_len != iv_length) in GetCipherInfo()
139 iv_length = check_len; in GetCipherInfo()
179 if (iv_length != 0 && in GetCipherInfo()
183 Int32::New(env->isolate(), iv_length)).IsNothing()) { in GetCipherInfo()
/third_party/mbedtls/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;
/third_party/mbedtls/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