1 /* $OpenBSD: rsa_locl.h,v 1.11 2019/11/02 13:47:41 jsing Exp $ */
2 
3 __BEGIN_HIDDEN_DECLS
4 
5 #define RSA_MIN_MODULUS_BITS	512
6 
7 /* Macros to test if a pkey or ctx is for a PSS key */
8 #define pkey_is_pss(pkey) (pkey->ameth->pkey_id == EVP_PKEY_RSA_PSS)
9 #define pkey_ctx_is_pss(ctx) (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS)
10 
11 RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md,
12     int saltlen);
13 int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd,
14     const EVP_MD **pmgf1md, int *psaltlen);
15 
16 extern int int_rsa_verify(int dtype, const unsigned char *m,
17     unsigned int m_len, unsigned char *rm, size_t *prm_len,
18     const unsigned char *sigbuf, size_t siglen, RSA *rsa);
19 
20 __END_HIDDEN_DECLS
21