diff options
Diffstat (limited to 'decrepit/rsa/rsa_decrepit.c')
-rw-r--r-- | decrepit/rsa/rsa_decrepit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/decrepit/rsa/rsa_decrepit.c b/decrepit/rsa/rsa_decrepit.c index c238f468..a88bc4bb 100644 --- a/decrepit/rsa/rsa_decrepit.c +++ b/decrepit/rsa/rsa_decrepit.c @@ -84,3 +84,13 @@ err: RSA_free(rsa); return NULL; } + +int RSA_padding_add_PKCS1_PSS(RSA *rsa, uint8_t *EM, const uint8_t *mHash, + const EVP_MD *Hash, int sLen) { + return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen); +} + +int RSA_verify_PKCS1_PSS(RSA *rsa, const uint8_t *mHash, const EVP_MD *Hash, + const uint8_t *EM, int sLen) { + return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen); +} |