mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-26 08:35:36 +00:00
unset iv_required to 0 (psa_encrypt_set_iv)and block_size (psa_cipher_setup)
This commit is contained in:
parent
395db875e6
commit
3520c2c4f7
|
@ -1324,8 +1324,6 @@ static psa_status_t psa_cipher_setup(psa_cipher_operation_t *operation,
|
||||||
if( cipher_info == NULL )
|
if( cipher_info == NULL )
|
||||||
return( PSA_ERROR_NOT_SUPPORTED );
|
return( PSA_ERROR_NOT_SUPPORTED );
|
||||||
|
|
||||||
operation->block_size = cipher_info->block_size;
|
|
||||||
|
|
||||||
mbedtls_cipher_init( &operation->ctx.cipher );
|
mbedtls_cipher_init( &operation->ctx.cipher );
|
||||||
ret = mbedtls_cipher_setup( &operation->ctx.cipher, cipher_info );
|
ret = mbedtls_cipher_setup( &operation->ctx.cipher, cipher_info );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
|
@ -1442,7 +1440,6 @@ psa_status_t psa_encrypt_set_iv(psa_cipher_operation_t *operation,
|
||||||
}
|
}
|
||||||
|
|
||||||
operation->iv_set = 1;
|
operation->iv_set = 1;
|
||||||
operation->iv_required = 0;
|
|
||||||
|
|
||||||
return( PSA_SUCCESS );
|
return( PSA_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue