mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Add RSA-alt to the PK layer
This commit is contained in:
parent
a2d3f22007
commit
12c1ff0ecb
5 changed files with 150 additions and 4 deletions
|
|
@ -32,6 +32,15 @@
|
|||
|
||||
#include "pk.h"
|
||||
|
||||
/* Container for RSA-alt */
|
||||
typedef struct
|
||||
{
|
||||
void *key;
|
||||
pk_rsa_alt_decrypt_func decrypt_func;
|
||||
pk_rsa_alt_sign_func sign_func;
|
||||
pk_rsa_alt_key_len_func key_len_func;
|
||||
} rsa_alt_context;
|
||||
|
||||
#if defined(POLARSSL_RSA_C)
|
||||
extern const pk_info_t rsa_info;
|
||||
#endif
|
||||
|
|
@ -45,4 +54,6 @@ extern const pk_info_t eckeydh_info;
|
|||
extern const pk_info_t ecdsa_info;
|
||||
#endif
|
||||
|
||||
extern const pk_info_t rsa_alt_info;
|
||||
|
||||
#endif /* POLARSSL_PK_WRAP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue