Home
last modified time | relevance | path

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

/third_party/mbedtls/tests/src/drivers/
H A Dtest_driver_cipher.c36 size_t iv_length, in mbedtls_test_transparent_cipher_encrypt()
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()
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()
329 (void) iv_length; in mbedtls_test_opaque_cipher_encrypt()
395 size_t iv_length) in mbedtls_test_opaque_cipher_set_iv()
399 (void) iv_length; in mbedtls_test_opaque_cipher_set_iv()
30 mbedtls_test_transparent_cipher_encrypt( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *iv, size_t iv_length, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length) mbedtls_test_transparent_cipher_encrypt() argument
209 mbedtls_test_transparent_cipher_set_iv( mbedtls_transparent_test_driver_cipher_operation_t *operation, const uint8_t *iv, size_t iv_length) mbedtls_test_transparent_cipher_set_iv() argument
316 mbedtls_test_opaque_cipher_encrypt( const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg, const uint8_t *iv, size_t iv_length, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length) mbedtls_test_opaque_cipher_encrypt() argument
392 mbedtls_test_opaque_cipher_set_iv( mbedtls_opaque_test_driver_cipher_operation_t *operation, const uint8_t *iv, size_t iv_length) mbedtls_test_opaque_cipher_set_iv() argument
[all...]
/third_party/mbedtls/library/
H A 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()
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()
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()
382 mbedtls_psa_cipher_set_iv( mbedtls_psa_cipher_operation_t *operation, const uint8_t *iv, size_t iv_length) mbedtls_psa_cipher_set_iv() argument
604 mbedtls_psa_cipher_encrypt( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *iv, size_t iv_length, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length) mbedtls_psa_cipher_encrypt() argument
[all...]
H A Dpsa_crypto_cipher.h126 * \param[in] iv_length Size of the IV in bytes. It is guaranteed by
138 const uint8_t *iv, size_t iv_length);
229 * \param[in] iv_length Size of the \p iv in bytes.
245 * The size \p iv_length is not acceptable for the chosen algorithm,
260 size_t iv_length,
H A Dpsa_crypto_driver_wrappers.c950 size_t iv_length, const uint8_t *input, size_t input_length, in psa_driver_wrapper_cipher_encrypt()
963 mbedtls_test_transparent_cipher_encrypt(attributes, key_buffer, key_buffer_size, alg, iv, iv_length, in psa_driver_wrapper_cipher_encrypt()
972 return (mbedtls_psa_cipher_encrypt(attributes, key_buffer, key_buffer_size, alg, iv, iv_length, input, in psa_driver_wrapper_cipher_encrypt()
982 return (mbedtls_test_opaque_cipher_encrypt(attributes, key_buffer, key_buffer_size, alg, iv, iv_length, in psa_driver_wrapper_cipher_encrypt()
994 (void)iv_length; in psa_driver_wrapper_cipher_encrypt()
1175 psa_status_t psa_driver_wrapper_cipher_set_iv(psa_cipher_operation_t *operation, const uint8_t *iv, size_t iv_length) in psa_driver_wrapper_cipher_set_iv() argument
1180 return (mbedtls_psa_cipher_set_iv(&operation->ctx.mbedtls_ctx, iv, iv_length)); in psa_driver_wrapper_cipher_set_iv()
1186 return (mbedtls_test_transparent_cipher_set_iv(&operation->ctx.transparent_test_driver_ctx, iv, iv_length)); in psa_driver_wrapper_cipher_set_iv()
1189 return (mbedtls_test_opaque_cipher_set_iv(&operation->ctx.opaque_test_driver_ctx, iv, iv_length)); in psa_driver_wrapper_cipher_set_iv()
1195 (void)iv_length; in psa_driver_wrapper_cipher_set_iv()
948 psa_driver_wrapper_cipher_encrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *iv, size_t iv_length, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length) psa_driver_wrapper_cipher_encrypt() argument
[all...]
H A Dpsa_crypto_driver_wrappers.h195 size_t iv_length,
228 size_t iv_length);
H A Dpsa_crypto.c4328 size_t *iv_length) in psa_cipher_generate_iv()
4368 *iv_length = default_iv_length; in psa_cipher_generate_iv()
4371 *iv_length = 0; in psa_cipher_generate_iv()
4384 size_t iv_length) in psa_cipher_set_iv()
4400 if (iv_length > PSA_CIPHER_IV_MAX_SIZE) { in psa_cipher_set_iv()
4405 LOCAL_INPUT_ALLOC(iv_external, iv_length, iv); in psa_cipher_set_iv()
4409 iv_length); in psa_cipher_set_iv()
4325 psa_cipher_generate_iv(psa_cipher_operation_t *operation, uint8_t *iv_external, size_t iv_size, size_t *iv_length) psa_cipher_generate_iv() argument
4382 psa_cipher_set_iv(psa_cipher_operation_t *operation, const uint8_t *iv_external, size_t iv_length) psa_cipher_set_iv() argument
/third_party/mbedtls/tests/include/test/drivers/
H A 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);
/third_party/rust/crates/rust-openssl/openssl/src/
H A 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() functions
740 let mut iv = vec![0; cipher.iv_length()]; in seal_open()
815 let mut iv = vec![0; cipher.iv_length()];
927 let mut iv = vec![0; cipher.iv_length()];
[all...]
H A Dcipher.rs523 pub fn iv_length(&self) -> usize { in iv_length() functions
/third_party/mbedtls/include/psa/
H A Dcrypto_builtin_primitives.h104 uint8_t MBEDTLS_PRIVATE(iv_length);
H A Dcrypto.h1854 * \param[out] iv_length On success, the number of bytes of the
1876 size_t *iv_length);
1895 * \param iv_length Size of the IV in bytes.
1916 size_t iv_length);
H A Dcrypto_se_driver.h408 * \param[in] iv_length The size (in bytes) of the `p_iv` buffer
414 size_t iv_length);
/third_party/mbedtls/tests/src/
H A 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()
/third_party/node/src/crypto/
H A Dcrypto_cipher.cc75 int iv_length = EVP_CIPHER_iv_length(cipher); in GetCipherInfo() local
118 // check_len == iv_length. in GetCipherInfo()
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()

Completed in 28 milliseconds