rsa.c: remove MBEDTLS_PRIVATE

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-03-15 16:50:31 +08:00
parent 83548b5c10
commit 644b901a4c

View file

@ -504,7 +504,7 @@ int mbedtls_rsa_set_padding(mbedtls_rsa_context *ctx, int padding,
*/
int mbedtls_rsa_get_padding_mode(const mbedtls_rsa_context *ctx)
{
return ctx->MBEDTLS_PRIVATE(padding);
return ctx->padding;
}
/*
@ -512,7 +512,7 @@ int mbedtls_rsa_get_padding_mode(const mbedtls_rsa_context *ctx)
*/
int mbedtls_rsa_get_hash_id(const mbedtls_rsa_context *ctx)
{
return ctx->MBEDTLS_PRIVATE(hash_id);
return ctx->hash_id;
}
/*