mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 21:40:11 +00:00
rsa.c: remove MBEDTLS_PRIVATE
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
83548b5c10
commit
644b901a4c
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user