diff options
author | Richard Levitte <levitte@openssl.org> | 2019-12-01 15:01:50 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-02-22 01:07:15 +0100 |
commit | 6f4b7663150e2ee264836dbc5b338bd979828312 (patch) | |
tree | 52d0a120512bb8ea123150e2ffccd0841008cbc2 /include/crypto/rsa.h | |
parent | e8d0819d52b2741fcb4ddb79ced4d824c3056918 (diff) |
PROV: add RSA signature implementation
This includes legacy PSS controls to params conversion, and an attempt
to generalise the parameter names when they are suitable for more than
one operation.
Also added crypto/rsa/rsa_aid.c, containing proper AlgorithmIdentifiers
for known RSA+hash function combinations.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10557)
Diffstat (limited to 'include/crypto/rsa.h')
-rw-r--r-- | include/crypto/rsa.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/crypto/rsa.h b/include/crypto/rsa.h index 97fd0f7aad..51ac0148af 100644 --- a/include/crypto/rsa.h +++ b/include/crypto/rsa.h @@ -29,4 +29,12 @@ int rsa_validate_public(const RSA *key); int rsa_validate_private(const RSA *key); int rsa_validate_pairwise(const RSA *key); +int int_rsa_verify(int dtype, const unsigned char *m, + unsigned int m_len, unsigned char *rm, + size_t *prm_len, const unsigned char *sigbuf, + size_t siglen, RSA *rsa); + +const unsigned char *rsa_digestinfo_encoding(int md_nid, size_t *len); +const unsigned char *rsa_algorithmidentifier_encoding(int md_nid, size_t *len); + #endif |