Lines Matching refs:default_iv_length
4344 operation->default_iv_length = PSA_CIPHER_IV_LENGTH(slot->attr.type, alg);
4391 size_t default_iv_length = 0; local
4405 default_iv_length = operation->default_iv_length;
4406 if (iv_size < default_iv_length) {
4411 if (default_iv_length > PSA_CIPHER_IV_MAX_SIZE) {
4416 LOCAL_OUTPUT_ALLOC(iv_external, default_iv_length, iv);
4418 status = psa_generate_random_internal(iv, default_iv_length);
4424 iv, default_iv_length);
4428 *iv_length = default_iv_length;
4434 mbedtls_platform_zeroize(iv, default_iv_length);
4595 size_t default_iv_length = 0; local
4612 default_iv_length = PSA_CIPHER_IV_LENGTH(slot->attr.type, alg);
4613 if (default_iv_length > PSA_CIPHER_IV_MAX_SIZE) {
4618 if (default_iv_length > 0) {
4619 if (output_size < default_iv_length) {
4624 status = psa_generate_random_internal(local_iv, default_iv_length);
4635 alg, local_iv, default_iv_length, input, input_length,
4636 psa_crypto_buffer_offset(output, default_iv_length),
4637 output_size - default_iv_length, output_length);
4646 if (default_iv_length > 0) {
4647 memcpy(output, local_iv, default_iv_length);
4649 *output_length += default_iv_length;