mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
Add pk_rsa_set_padding() and rsa_set_padding()
This commit is contained in:
parent
7c59363a85
commit
b4fae579e8
6 changed files with 106 additions and 13 deletions
|
|
@ -60,6 +60,17 @@ void rsa_init( rsa_context *ctx,
|
|||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Set padding method after initialisation
|
||||
*/
|
||||
void rsa_set_padding( rsa_context *ctx,
|
||||
int padding,
|
||||
int hash_id)
|
||||
{
|
||||
ctx->padding = padding;
|
||||
ctx->hash_id = hash_id;
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_GENPRIME)
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue