2018-02-02 21:35:43 -08:00
|
|
|
#ifndef HACTOOL_RSA_H
|
|
|
|
#define HACTOOL_RSA_H
|
2018-01-24 09:52:25 -08:00
|
|
|
|
2018-01-29 18:39:30 +00:00
|
|
|
#include "mbedtls/rsa.h"
|
2018-01-24 09:52:25 -08:00
|
|
|
|
|
|
|
int rsa2048_pss_verify(const void *data, size_t len, const unsigned char *signature, const unsigned char *modulus);
|
2018-02-04 00:21:04 -08:00
|
|
|
int rsa2048_pkcs1_verify(const void *data, size_t len, const unsigned char *signature, const unsigned char *modulus);
|
2018-07-20 02:57:28 -07:00
|
|
|
int rsa2048_oaep_decrypt_verify(void *out, size_t max_out_len, const unsigned char *signature, const unsigned char *modulus, const unsigned char *exponent, size_t exponent_len, const unsigned char *label_hash, size_t *out_len);
|
2018-01-24 09:52:25 -08:00
|
|
|
|
2018-01-24 23:18:27 +01:00
|
|
|
#endif
|