diff options
author | tb <> | 2023-05-05 12:21:44 +0000 |
---|---|---|
committer | tb <> | 2023-05-05 12:21:44 +0000 |
commit | cbb774df47617a348f8854e2c7c75251e41333d4 (patch) | |
tree | d84042cf4e6f5fa6f82db77796665a46d6e71f58 /src/lib/libcrypto/rsa/rsa_local.h | |
parent | 6e09131c76b8f3355a84f4dfe27686f421bbbe2c (diff) | |
download | openbsd-cbb774df47617a348f8854e2c7c75251e41333d4.tar.gz openbsd-cbb774df47617a348f8854e2c7c75251e41333d4.tar.bz2 openbsd-cbb774df47617a348f8854e2c7c75251e41333d4.zip |
Add back support for RSA_X931_PADDING
This makes the custom stalt stack work again.
Tested by robert as part of a larger diff
ok jsing
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_local.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_local.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_local.h b/src/lib/libcrypto/rsa/rsa_local.h index b438ab4eec..4bc2cee8cd 100644 --- a/src/lib/libcrypto/rsa/rsa_local.h +++ b/src/lib/libcrypto/rsa/rsa_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_local.h,v 1.1 2022/11/26 16:08:54 tb Exp $ */ | 1 | /* $OpenBSD: rsa_local.h,v 1.2 2023/05/05 12:21:44 tb Exp $ */ |
2 | 2 | ||
3 | __BEGIN_HIDDEN_DECLS | 3 | __BEGIN_HIDDEN_DECLS |
4 | 4 | ||
@@ -91,4 +91,10 @@ extern int int_rsa_verify(int dtype, const unsigned char *m, | |||
91 | unsigned int m_len, unsigned char *rm, size_t *prm_len, | 91 | unsigned int m_len, unsigned char *rm, size_t *prm_len, |
92 | const unsigned char *sigbuf, size_t siglen, RSA *rsa); | 92 | const unsigned char *sigbuf, size_t siglen, RSA *rsa); |
93 | 93 | ||
94 | int RSA_padding_add_X931(unsigned char *to, int tlen, | ||
95 | const unsigned char *f, int fl); | ||
96 | int RSA_padding_check_X931(unsigned char *to, int tlen, | ||
97 | const unsigned char *f, int fl, int rsa_len); | ||
98 | int RSA_X931_hash_id(int nid); | ||
99 | |||
94 | __END_HIDDEN_DECLS | 100 | __END_HIDDEN_DECLS |