From cbb774df47617a348f8854e2c7c75251e41333d4 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 5 May 2023 12:21:44 +0000 Subject: 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 --- src/lib/libcrypto/rsa/rsa_local.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/rsa/rsa_local.h') 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 @@ -/* $OpenBSD: rsa_local.h,v 1.1 2022/11/26 16:08:54 tb Exp $ */ +/* $OpenBSD: rsa_local.h,v 1.2 2023/05/05 12:21:44 tb Exp $ */ __BEGIN_HIDDEN_DECLS @@ -91,4 +91,10 @@ extern 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); +int RSA_padding_add_X931(unsigned char *to, int tlen, + const unsigned char *f, int fl); +int RSA_padding_check_X931(unsigned char *to, int tlen, + const unsigned char *f, int fl, int rsa_len); +int RSA_X931_hash_id(int nid); + __END_HIDDEN_DECLS -- cgit v1.2.3-55-g6feb