summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_local.h
diff options
context:
space:
mode:
authortb <>2023-05-05 12:21:44 +0000
committertb <>2023-05-05 12:21:44 +0000
commitcbb774df47617a348f8854e2c7c75251e41333d4 (patch)
treed84042cf4e6f5fa6f82db77796665a46d6e71f58 /src/lib/libcrypto/rsa/rsa_local.h
parent6e09131c76b8f3355a84f4dfe27686f421bbbe2c (diff)
downloadopenbsd-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.h8
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
94int RSA_padding_add_X931(unsigned char *to, int tlen,
95 const unsigned char *f, int fl);
96int RSA_padding_check_X931(unsigned char *to, int tlen,
97 const unsigned char *f, int fl, int rsa_len);
98int RSA_X931_hash_id(int nid);
99
94__END_HIDDEN_DECLS 100__END_HIDDEN_DECLS