Lines Matching refs:iv_length
202 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()
531 input_length - operation.iv_length, in mbedtls_psa_cipher_decrypt()