mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-31 18:32:57 +00:00
psa_crypto_rsa: remove unnecessary casting
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
9e520f7ea9
commit
52ed54b949
@ -73,8 +73,8 @@ psa_status_t mbedtls_psa_rsa_load_representation(
|
||||
if (PSA_KEY_TYPE_IS_KEY_PAIR(type)) {
|
||||
status = mbedtls_to_psa_error(mbedtls_rsa_key_parse(*p_rsa, data, data_length));
|
||||
} else {
|
||||
unsigned char *p = (unsigned char *) data;
|
||||
unsigned char *end = (unsigned char *) (data + data_length);
|
||||
unsigned char *p = data;
|
||||
unsigned char *end = (data + data_length);
|
||||
status = mbedtls_to_psa_error(mbedtls_rsa_pubkey_parse(*p_rsa, &p, end));
|
||||
}
|
||||
if (status != PSA_SUCCESS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user