diff options
author | jsing <> | 2019-10-04 16:51:31 +0000 |
---|---|---|
committer | jsing <> | 2019-10-04 16:51:31 +0000 |
commit | 5e5005b92f5807443f04e3f78e5c3a0c65b10de5 (patch) | |
tree | 7429e94288453050e02c020441dc4aac270c382a /src/lib/libcrypto/rsa/rsa_locl.h | |
parent | 90f489ef7ff4d9517eb9cb52fb75a95d5d391747 (diff) | |
download | openbsd-5e5005b92f5807443f04e3f78e5c3a0c65b10de5.tar.gz openbsd-5e5005b92f5807443f04e3f78e5c3a0c65b10de5.tar.bz2 openbsd-5e5005b92f5807443f04e3f78e5c3a0c65b10de5.zip |
Provide internal RSA_padding_{add,check}_PKCS1_OAEP_mgf1() functions.
These are internal only for now and will be made public at a later date.
The RSA_padding_{add,check}_PKCS1_OAEP() functions become wrappers around
the *_mgf1() variant.
ok tb@ inoguchi@ (as part of a larger diff)
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_locl.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_locl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_locl.h b/src/lib/libcrypto/rsa/rsa_locl.h index e949ee8aa9..28bf4110c2 100644 --- a/src/lib/libcrypto/rsa/rsa_locl.h +++ b/src/lib/libcrypto/rsa/rsa_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_locl.h,v 1.4 2016/12/21 15:49:29 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_locl.h,v 1.5 2019/10/04 16:51:31 jsing Exp $ */ |
2 | 2 | ||
3 | __BEGIN_HIDDEN_DECLS | 3 | __BEGIN_HIDDEN_DECLS |
4 | 4 | ||
@@ -6,4 +6,11 @@ extern int int_rsa_verify(int dtype, const unsigned char *m, | |||
6 | unsigned int m_len, unsigned char *rm, size_t *prm_len, | 6 | unsigned int m_len, unsigned char *rm, size_t *prm_len, |
7 | const unsigned char *sigbuf, size_t siglen, RSA *rsa); | 7 | const unsigned char *sigbuf, size_t siglen, RSA *rsa); |
8 | 8 | ||
9 | int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, | ||
10 | const unsigned char *from, int flen, const unsigned char *param, int plen, | ||
11 | const EVP_MD *md, const EVP_MD *mgf1md); | ||
12 | int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, | ||
13 | const unsigned char *from, int flen, int num, const unsigned char *param, | ||
14 | int plen, const EVP_MD *md, const EVP_MD *mgf1md); | ||
15 | |||
9 | __END_HIDDEN_DECLS | 16 | __END_HIDDEN_DECLS |