Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
rsa.h File Reference
#include <openssl/opensslconf.h>
#include <openssl/asn1.h>
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/ossl_typ.h>
#include <openssl/bn.h>
#include <openssl/rsaerr.h>
+ Include dependency graph for rsa.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rsa_pss_params_st
 
struct  rsa_oaep_params_st
 

Macros

#define OPENSSL_RSA_MAX_MODULUS_BITS   16384
 
#define OPENSSL_RSA_FIPS_MIN_MODULUS_BITS   1024
 
#define OPENSSL_RSA_SMALL_MODULUS_BITS   3072
 
#define OPENSSL_RSA_MAX_PUBEXP_BITS   64
 
#define RSA_3   0x3L
 
#define RSA_F4   0x10001L
 
#define RSA_ASN1_VERSION_DEFAULT   0
 
#define RSA_ASN1_VERSION_MULTI   1
 
#define RSA_DEFAULT_PRIME_NUM   2
 
#define RSA_METHOD_FLAG_NO_CHECK
 
#define RSA_FLAG_CACHE_PUBLIC   0x0002
 
#define RSA_FLAG_CACHE_PRIVATE   0x0004
 
#define RSA_FLAG_BLINDING   0x0008
 
#define RSA_FLAG_THREAD_SAFE   0x0010
 
#define RSA_FLAG_EXT_PKEY   0x0020
 
#define RSA_FLAG_NO_BLINDING   0x0080
 
#define RSA_FLAG_NO_CONSTTIME   0x0000
 
#define RSA_FLAG_NO_EXP_CONSTTIME   RSA_FLAG_NO_CONSTTIME
 
#define EVP_PKEY_CTX_set_rsa_padding(ctx, pad)    RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL)
 
#define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad)    RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad)
 
#define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len)
 
#define RSA_PSS_SALTLEN_DIGEST   -1
 
#define RSA_PSS_SALTLEN_AUTO   -2
 
#define RSA_PSS_SALTLEN_MAX   -3
 
#define RSA_PSS_SALTLEN_MAX_SIGN   -2
 
#define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len)
 
#define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen)
 
#define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits)
 
#define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp)
 
#define EVP_PKEY_CTX_set_rsa_keygen_primes(ctx, primes)
 
#define EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md)
 
#define EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md)
 
#define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md)
 
#define EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd)
 
#define EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd)
 
#define EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen)
 
#define EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l)
 
#define EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md)
 
#define EVP_PKEY_CTRL_RSA_PADDING   (EVP_PKEY_ALG_CTRL + 1)
 
#define EVP_PKEY_CTRL_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 2)
 
#define EVP_PKEY_CTRL_RSA_KEYGEN_BITS   (EVP_PKEY_ALG_CTRL + 3)
 
#define EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP   (EVP_PKEY_ALG_CTRL + 4)
 
#define EVP_PKEY_CTRL_RSA_MGF1_MD   (EVP_PKEY_ALG_CTRL + 5)
 
#define EVP_PKEY_CTRL_GET_RSA_PADDING   (EVP_PKEY_ALG_CTRL + 6)
 
#define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 7)
 
#define EVP_PKEY_CTRL_GET_RSA_MGF1_MD   (EVP_PKEY_ALG_CTRL + 8)
 
#define EVP_PKEY_CTRL_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 9)
 
#define EVP_PKEY_CTRL_RSA_OAEP_LABEL   (EVP_PKEY_ALG_CTRL + 10)
 
#define EVP_PKEY_CTRL_GET_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 11)
 
#define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL   (EVP_PKEY_ALG_CTRL + 12)
 
#define EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES   (EVP_PKEY_ALG_CTRL + 13)
 
#define RSA_PKCS1_PADDING   1
 
#define RSA_SSLV23_PADDING   2
 
#define RSA_NO_PADDING   3
 
#define RSA_PKCS1_OAEP_PADDING   4
 
#define RSA_X931_PADDING   5
 
#define RSA_PKCS1_PSS_PADDING   6
 
#define RSA_PKCS1_PADDING_SIZE   11
 
#define RSA_set_app_data(s, arg)   RSA_set_ex_data(s,0,arg)
 
#define RSA_get_app_data(s)   RSA_get_ex_data(s,0)
 
#define RSA_get_ex_new_index(l, p, newf, dupf, freef)    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)
 
#define RSA_FLAG_FIPS_METHOD   0x0400
 
#define RSA_FLAG_NON_FIPS_ALLOW   0x0400
 
#define RSA_FLAG_CHECKED   0x0800
 

Typedefs

typedef struct rsa_oaep_params_st RSA_OAEP_PARAMS
 

Functions

RSARSA_new (void)
 
RSARSA_new_method (ENGINE *engine)
 
int RSA_bits (const RSA *rsa)
 
int RSA_size (const RSA *rsa)
 
int RSA_security_bits (const RSA *rsa)
 
int RSA_set0_key (RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
 
int RSA_set0_factors (RSA *r, BIGNUM *p, BIGNUM *q)
 
int RSA_set0_crt_params (RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp)
 
int RSA_set0_multi_prime_params (RSA *r, BIGNUM *primes[], BIGNUM *exps[], BIGNUM *coeffs[], int pnum)
 
void RSA_get0_key (const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
 
void RSA_get0_factors (const RSA *r, const BIGNUM **p, const BIGNUM **q)
 
int RSA_get_multi_prime_extra_count (const RSA *r)
 
int RSA_get0_multi_prime_factors (const RSA *r, const BIGNUM *primes[])
 
void RSA_get0_crt_params (const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp)
 
int RSA_get0_multi_prime_crt_params (const RSA *r, const BIGNUM *exps[], const BIGNUM *coeffs[])
 
const BIGNUMRSA_get0_n (const RSA *d)
 
const BIGNUMRSA_get0_e (const RSA *d)
 
const BIGNUMRSA_get0_d (const RSA *d)
 
const BIGNUMRSA_get0_p (const RSA *d)
 
const BIGNUMRSA_get0_q (const RSA *d)
 
const BIGNUMRSA_get0_dmp1 (const RSA *r)
 
const BIGNUMRSA_get0_dmq1 (const RSA *r)
 
const BIGNUMRSA_get0_iqmp (const RSA *r)
 
const RSA_PSS_PARAMSRSA_get0_pss_params (const RSA *r)
 
void RSA_clear_flags (RSA *r, int flags)
 
int RSA_test_flags (const RSA *r, int flags)
 
void RSA_set_flags (RSA *r, int flags)
 
int RSA_get_version (RSA *r)
 
ENGINERSA_get0_engine (const RSA *r)
 
 DEPRECATEDIN_0_9_8 (RSA *RSA_generate_key(int bits, unsigned long e, void(*callback)(int, int, void *), void *cb_arg)) int RSA_generate_key_ex(RSA *rsa
 
int RSA_generate_multi_prime_key (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb)
 
int RSA_X931_derive_ex (RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2, const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb)
 
int RSA_X931_generate_key_ex (RSA *rsa, int bits, const BIGNUM *e, BN_GENCB *cb)
 
int RSA_check_key (const RSA *)
 
int RSA_check_key_ex (const RSA *, BN_GENCB *cb)
 
int RSA_public_encrypt (int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_private_encrypt (int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_public_decrypt (int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_private_decrypt (int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
void RSA_free (RSA *r)
 
int RSA_up_ref (RSA *r)
 
int RSA_flags (const RSA *r)
 
void RSA_set_default_method (const RSA_METHOD *meth)
 
const RSA_METHODRSA_get_default_method (void)
 
const RSA_METHODRSA_null_method (void)
 
const RSA_METHODRSA_get_method (const RSA *rsa)
 
int RSA_set_method (RSA *rsa, const RSA_METHOD *meth)
 
const RSA_METHODRSA_PKCS1_OpenSSL (void)
 
int RSA_pkey_ctx_ctrl (EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2)
 
 DECLARE_ASN1_ENCODE_FUNCTIONS_const (RSA, RSAPublicKey) DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA
 
int RSA_print_fp (FILE *fp, const RSA *r, int offset)
 
int RSA_print (BIO *bp, const RSA *r, int offset)
 
int RSA_sign (int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, RSA *rsa)
 
int RSA_verify (int type, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, RSA *rsa)
 
int RSA_sign_ASN1_OCTET_STRING (int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, RSA *rsa)
 
int RSA_verify_ASN1_OCTET_STRING (int type, const unsigned char *m, unsigned int m_length, unsigned char *sigbuf, unsigned int siglen, RSA *rsa)
 
int RSA_blinding_on (RSA *rsa, BN_CTX *ctx)
 
void RSA_blinding_off (RSA *rsa)
 
BN_BLINDINGRSA_setup_blinding (RSA *rsa, BN_CTX *ctx)
 
int RSA_padding_add_PKCS1_type_1 (unsigned char *to, int tlen, const unsigned char *f, int fl)
 
int RSA_padding_check_PKCS1_type_1 (unsigned char *to, int tlen, const unsigned char *f, int fl, int rsa_len)
 
int RSA_padding_add_PKCS1_type_2 (unsigned char *to, int tlen, const unsigned char *f, int fl)
 
int RSA_padding_check_PKCS1_type_2 (unsigned char *to, int tlen, const unsigned char *f, int fl, int rsa_len)
 
int PKCS1_MGF1 (unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst)
 
int RSA_padding_add_PKCS1_OAEP (unsigned char *to, int tlen, const unsigned char *f, int fl, const unsigned char *p, int pl)
 
int RSA_padding_check_PKCS1_OAEP (unsigned char *to, int tlen, const unsigned char *f, int fl, int rsa_len, const unsigned char *p, int pl)
 
int RSA_padding_add_PKCS1_OAEP_mgf1 (unsigned char *to, int tlen, const unsigned char *from, int flen, const unsigned char *param, int plen, const EVP_MD *md, const EVP_MD *mgf1md)
 
int RSA_padding_check_PKCS1_OAEP_mgf1 (unsigned char *to, int tlen, const unsigned char *from, int flen, int num, const unsigned char *param, int plen, const EVP_MD *md, const EVP_MD *mgf1md)
 
int RSA_padding_add_SSLv23 (unsigned char *to, int tlen, const unsigned char *f, int fl)
 
int RSA_padding_check_SSLv23 (unsigned char *to, int tlen, const unsigned char *f, int fl, int rsa_len)
 
int RSA_padding_add_none (unsigned char *to, int tlen, const unsigned char *f, int fl)
 
int RSA_padding_check_none (unsigned char *to, int tlen, const unsigned char *f, int fl, int rsa_len)
 
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)
 
int RSA_verify_PKCS1_PSS (RSA *rsa, const unsigned char *mHash, const EVP_MD *Hash, const unsigned char *EM, int sLen)
 
int RSA_padding_add_PKCS1_PSS (RSA *rsa, unsigned char *EM, const unsigned char *mHash, const EVP_MD *Hash, int sLen)
 
int RSA_verify_PKCS1_PSS_mgf1 (RSA *rsa, const unsigned char *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, const unsigned char *EM, int sLen)
 
int RSA_padding_add_PKCS1_PSS_mgf1 (RSA *rsa, unsigned char *EM, const unsigned char *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, int sLen)
 
int RSA_set_ex_data (RSA *r, int idx, void *arg)
 
void * RSA_get_ex_data (const RSA *r, int idx)
 
RSARSAPublicKey_dup (RSA *rsa)
 
RSARSAPrivateKey_dup (RSA *rsa)
 
RSA_METHODRSA_meth_new (const char *name, int flags)
 
void RSA_meth_free (RSA_METHOD *meth)
 
RSA_METHODRSA_meth_dup (const RSA_METHOD *meth)
 
const char * RSA_meth_get0_name (const RSA_METHOD *meth)
 
int RSA_meth_set1_name (RSA_METHOD *meth, const char *name)
 
int RSA_meth_get_flags (const RSA_METHOD *meth)
 
int RSA_meth_set_flags (RSA_METHOD *meth, int flags)
 
void * RSA_meth_get0_app_data (const RSA_METHOD *meth)
 
int RSA_meth_set0_app_data (RSA_METHOD *meth, void *app_data)
 
int RSA_meth_set_pub_enc (RSA_METHOD *rsa, int(*pub_enc)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding))
 
int RSA_meth_set_pub_dec (RSA_METHOD *rsa, int(*pub_dec)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding))
 
int RSA_meth_set_priv_enc (RSA_METHOD *rsa, int(*priv_enc)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding))
 
int RSA_meth_set_priv_dec (RSA_METHOD *rsa, int(*priv_dec)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding))
 
int RSA_meth_set_mod_exp (RSA_METHOD *rsa, int(*mod_exp)(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx))
 
int RSA_meth_set_bn_mod_exp (RSA_METHOD *rsa, int(*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx))
 
int RSA_meth_set_init (RSA_METHOD *rsa, int(*init)(RSA *rsa))
 
int RSA_meth_set_finish (RSA_METHOD *rsa, int(*finish)(RSA *rsa))
 
int RSA_meth_set_sign (RSA_METHOD *rsa, int(*sign)(int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa))
 
int RSA_meth_set_verify (RSA_METHOD *rsa, int(*verify)(int dtype, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa))
 
int RSA_meth_set_keygen (RSA_METHOD *rsa, int(*keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb))
 
int RSA_meth_set_multi_prime_keygen (RSA_METHOD *meth, int(*keygen)(RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb))
 

Variables

int bits
 
int BIGNUMe
 
int BIGNUM BN_GENCBcb
 
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_pub_enc (const RSA_METHOD *meth)
 
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_pub_dec (const RSA_METHOD *meth)
 
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_priv_enc (const RSA_METHOD *meth)
 
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_priv_dec (const RSA_METHOD *meth)
 
int(*)(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctxRSA_meth_get_mod_exp (const RSA_METHOD *meth)
 
int(*)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) RSA_meth_get_bn_mod_exp (const RSA_METHOD *meth)
 
int(*)(RSA *rsa) RSA_meth_get_init (const RSA_METHOD *meth)
 
int(*)(RSA *rsa) RSA_meth_get_finish (const RSA_METHOD *meth)
 
int(*)(int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa) RSA_meth_get_sign (const RSA_METHOD *meth)
 
int(*)(int dtype, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) RSA_meth_get_verify (const RSA_METHOD *meth)
 
int(*)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cbRSA_meth_get_keygen (const RSA_METHOD *meth)
 
int(*)(RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cbRSA_meth_get_multi_prime_keygen (const RSA_METHOD *meth)
 

Macro Definition Documentation

◆ EVP_PKEY_CTRL_GET_RSA_MGF1_MD

#define EVP_PKEY_CTRL_GET_RSA_MGF1_MD   (EVP_PKEY_ALG_CTRL + 8)

Definition at line 174 of file rsa.h.

◆ EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL

#define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL   (EVP_PKEY_ALG_CTRL + 12)

Definition at line 180 of file rsa.h.

◆ EVP_PKEY_CTRL_GET_RSA_OAEP_MD

#define EVP_PKEY_CTRL_GET_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 11)

Definition at line 179 of file rsa.h.

◆ EVP_PKEY_CTRL_GET_RSA_PADDING

#define EVP_PKEY_CTRL_GET_RSA_PADDING   (EVP_PKEY_ALG_CTRL + 6)

Definition at line 172 of file rsa.h.

◆ EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN

#define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 7)

Definition at line 173 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_KEYGEN_BITS

#define EVP_PKEY_CTRL_RSA_KEYGEN_BITS   (EVP_PKEY_ALG_CTRL + 3)

Definition at line 168 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES

#define EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES   (EVP_PKEY_ALG_CTRL + 13)

Definition at line 182 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP

#define EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP   (EVP_PKEY_ALG_CTRL + 4)

Definition at line 169 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_MGF1_MD

#define EVP_PKEY_CTRL_RSA_MGF1_MD   (EVP_PKEY_ALG_CTRL + 5)

Definition at line 170 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_OAEP_LABEL

#define EVP_PKEY_CTRL_RSA_OAEP_LABEL   (EVP_PKEY_ALG_CTRL + 10)

Definition at line 177 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_OAEP_MD

#define EVP_PKEY_CTRL_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 9)

Definition at line 176 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_PADDING

#define EVP_PKEY_CTRL_RSA_PADDING   (EVP_PKEY_ALG_CTRL + 1)

Definition at line 165 of file rsa.h.

◆ EVP_PKEY_CTRL_RSA_PSS_SALTLEN

#define EVP_PKEY_CTRL_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 2)

Definition at line 166 of file rsa.h.

◆ EVP_PKEY_CTX_get0_rsa_oaep_label

#define EVP_PKEY_CTX_get0_rsa_oaep_label ( ctx,
l )
Value:
int void BN_CTX * ctx
Definition bn.h:334
#define EVP_PKEY_RSA
Definition evp.h:42
int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, int p1, void *p2)
#define EVP_PKEY_OP_TYPE_CRYPT
Definition evp.h:1269
#define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL
Definition rsa.h:180

Definition at line 156 of file rsa.h.

◆ EVP_PKEY_CTX_get_rsa_mgf1_md

#define EVP_PKEY_CTX_get_rsa_mgf1_md ( ctx,
pmd )
Value:
EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)(pmd))
#define EVP_PKEY_OP_TYPE_SIG
Definition evp.h:1265
int RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2)
#define EVP_PKEY_CTRL_GET_RSA_MGF1_MD
Definition rsa.h:174

Definition at line 144 of file rsa.h.

◆ EVP_PKEY_CTX_get_rsa_oaep_md

#define EVP_PKEY_CTX_get_rsa_oaep_md ( ctx,
pmd )
Value:

Definition at line 148 of file rsa.h.

◆ EVP_PKEY_CTX_get_rsa_padding

#define EVP_PKEY_CTX_get_rsa_padding ( ctx,
ppad )    RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad)

Definition at line 97 of file rsa.h.

◆ EVP_PKEY_CTX_get_rsa_pss_saltlen

#define EVP_PKEY_CTX_get_rsa_pss_saltlen ( ctx,
plen )
Value:
#define EVP_PKEY_OP_VERIFY
Definition evp.h:1257
#define EVP_PKEY_OP_SIGN
Definition evp.h:1256
#define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN
Definition rsa.h:173

Definition at line 116 of file rsa.h.

◆ EVP_PKEY_CTX_set0_rsa_oaep_label

#define EVP_PKEY_CTX_set0_rsa_oaep_label ( ctx,
l,
llen )
Value:

Definition at line 152 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_keygen_bits

#define EVP_PKEY_CTX_set_rsa_keygen_bits ( ctx,
bits )
Value:
#define EVP_PKEY_OP_KEYGEN
Definition evp.h:1255
#define EVP_PKEY_CTRL_RSA_KEYGEN_BITS
Definition rsa.h:168
int bits
Definition rsa.h:239

Definition at line 120 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_keygen_primes

#define EVP_PKEY_CTX_set_rsa_keygen_primes ( ctx,
primes )
Value:
#define EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES
Definition rsa.h:182

Definition at line 128 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_keygen_pubexp

#define EVP_PKEY_CTX_set_rsa_keygen_pubexp ( ctx,
pubexp )
Value:

Definition at line 124 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_mgf1_md

#define EVP_PKEY_CTX_set_rsa_mgf1_md ( ctx,
md )
Value:
const void int const EVP_MD * md
Definition hmac.h:34
#define EVP_PKEY_CTRL_RSA_MGF1_MD
Definition rsa.h:170

Definition at line 132 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_oaep_md

#define EVP_PKEY_CTX_set_rsa_oaep_md ( ctx,
md )
Value:

Definition at line 140 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_padding

#define EVP_PKEY_CTX_set_rsa_padding ( ctx,
pad )    RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL)

Definition at line 94 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_pss_keygen_md

#define EVP_PKEY_CTX_set_rsa_pss_keygen_md ( ctx,
md )
Value:
0, (void *)(md))
#define EVP_PKEY_CTRL_MD
Definition evp.h:1290
#define EVP_PKEY_RSA_PSS
Definition evp.h:44

Definition at line 160 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md

#define EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md ( ctx,
md )
Value:

Definition at line 136 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen

#define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen ( ctx,
len )
Value:
const unsigned char size_t len
Definition ct.h:348
#define EVP_PKEY_CTRL_RSA_PSS_SALTLEN
Definition rsa.h:166

Definition at line 112 of file rsa.h.

◆ EVP_PKEY_CTX_set_rsa_pss_saltlen

#define EVP_PKEY_CTX_set_rsa_pss_saltlen ( ctx,
len )

◆ OPENSSL_RSA_FIPS_MIN_MODULUS_BITS

#define OPENSSL_RSA_FIPS_MIN_MODULUS_BITS   1024

Definition at line 34 of file rsa.h.

◆ OPENSSL_RSA_MAX_MODULUS_BITS

#define OPENSSL_RSA_MAX_MODULUS_BITS   16384

Definition at line 31 of file rsa.h.

◆ OPENSSL_RSA_MAX_PUBEXP_BITS

#define OPENSSL_RSA_MAX_PUBEXP_BITS   64

Definition at line 42 of file rsa.h.

◆ OPENSSL_RSA_SMALL_MODULUS_BITS

#define OPENSSL_RSA_SMALL_MODULUS_BITS   3072

Definition at line 37 of file rsa.h.

◆ RSA_3

#define RSA_3   0x3L

Definition at line 45 of file rsa.h.

◆ RSA_ASN1_VERSION_DEFAULT

#define RSA_ASN1_VERSION_DEFAULT   0

Definition at line 49 of file rsa.h.

◆ RSA_ASN1_VERSION_MULTI

#define RSA_ASN1_VERSION_MULTI   1

Definition at line 50 of file rsa.h.

◆ RSA_DEFAULT_PRIME_NUM

#define RSA_DEFAULT_PRIME_NUM   2

Definition at line 52 of file rsa.h.

◆ RSA_F4

#define RSA_F4   0x10001L

Definition at line 46 of file rsa.h.

◆ RSA_FLAG_BLINDING

#define RSA_FLAG_BLINDING   0x0008

Definition at line 58 of file rsa.h.

◆ RSA_FLAG_CACHE_PRIVATE

#define RSA_FLAG_CACHE_PRIVATE   0x0004

Definition at line 57 of file rsa.h.

◆ RSA_FLAG_CACHE_PUBLIC

#define RSA_FLAG_CACHE_PUBLIC   0x0002

Definition at line 56 of file rsa.h.

◆ RSA_FLAG_CHECKED

#define RSA_FLAG_CHECKED   0x0800

Definition at line 419 of file rsa.h.

◆ RSA_FLAG_EXT_PKEY

#define RSA_FLAG_EXT_PKEY   0x0020

Definition at line 66 of file rsa.h.

◆ RSA_FLAG_FIPS_METHOD

#define RSA_FLAG_FIPS_METHOD   0x0400

Definition at line 406 of file rsa.h.

◆ RSA_FLAG_NO_BLINDING

#define RSA_FLAG_NO_BLINDING   0x0080

Definition at line 74 of file rsa.h.

◆ RSA_FLAG_NO_CONSTTIME

#define RSA_FLAG_NO_CONSTTIME   0x0000

Definition at line 79 of file rsa.h.

◆ RSA_FLAG_NO_EXP_CONSTTIME

#define RSA_FLAG_NO_EXP_CONSTTIME   RSA_FLAG_NO_CONSTTIME

Definition at line 91 of file rsa.h.

◆ RSA_FLAG_NON_FIPS_ALLOW

#define RSA_FLAG_NON_FIPS_ALLOW   0x0400

Definition at line 414 of file rsa.h.

◆ RSA_FLAG_THREAD_SAFE

#define RSA_FLAG_THREAD_SAFE   0x0010

Definition at line 59 of file rsa.h.

◆ RSA_get_app_data

#define RSA_get_app_data ( s)    RSA_get_ex_data(s,0)

Definition at line 195 of file rsa.h.

◆ RSA_get_ex_new_index

#define RSA_get_ex_new_index ( l,
p,
newf,
dupf,
freef )    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)

Definition at line 391 of file rsa.h.

◆ RSA_METHOD_FLAG_NO_CHECK

#define RSA_METHOD_FLAG_NO_CHECK
Value:
0x0001/* don't check pub/private
* match */

Definition at line 54 of file rsa.h.

◆ RSA_NO_PADDING

#define RSA_NO_PADDING   3

Definition at line 186 of file rsa.h.

◆ RSA_PKCS1_OAEP_PADDING

#define RSA_PKCS1_OAEP_PADDING   4

Definition at line 187 of file rsa.h.

◆ RSA_PKCS1_PADDING

#define RSA_PKCS1_PADDING   1

Definition at line 184 of file rsa.h.

◆ RSA_PKCS1_PADDING_SIZE

#define RSA_PKCS1_PADDING_SIZE   11

Definition at line 192 of file rsa.h.

◆ RSA_PKCS1_PSS_PADDING

#define RSA_PKCS1_PSS_PADDING   6

Definition at line 190 of file rsa.h.

◆ RSA_PSS_SALTLEN_AUTO

#define RSA_PSS_SALTLEN_AUTO   -2

Definition at line 106 of file rsa.h.

◆ RSA_PSS_SALTLEN_DIGEST

#define RSA_PSS_SALTLEN_DIGEST   -1

Definition at line 104 of file rsa.h.

◆ RSA_PSS_SALTLEN_MAX

#define RSA_PSS_SALTLEN_MAX   -3

Definition at line 108 of file rsa.h.

◆ RSA_PSS_SALTLEN_MAX_SIGN

#define RSA_PSS_SALTLEN_MAX_SIGN   -2

Definition at line 110 of file rsa.h.

◆ RSA_set_app_data

#define RSA_set_app_data ( s,
arg )   RSA_set_ex_data(s,0,arg)

Definition at line 194 of file rsa.h.

◆ RSA_SSLV23_PADDING

#define RSA_SSLV23_PADDING   2

Definition at line 185 of file rsa.h.

◆ RSA_X931_PADDING

#define RSA_X931_PADDING   5

Definition at line 188 of file rsa.h.

Typedef Documentation

◆ RSA_OAEP_PARAMS

Function Documentation

◆ DECLARE_ASN1_ENCODE_FUNCTIONS_const()

DECLARE_ASN1_ENCODE_FUNCTIONS_const ( RSA ,
RSAPublicKey  )

◆ DEPRECATEDIN_0_9_8()

DEPRECATEDIN_0_9_8 ( RSA * RSA_generate_keyint bits, unsigned long e, void(*callback)(int, int, void *), void *cb_arg)

◆ PKCS1_MGF1()

int PKCS1_MGF1 ( unsigned char * mask,
long len,
const unsigned char * seed,
long seedlen,
const EVP_MD * dgst )

◆ RSA_bits()

int RSA_bits ( const RSA * rsa)

◆ RSA_blinding_off()

void RSA_blinding_off ( RSA * rsa)

◆ RSA_blinding_on()

int RSA_blinding_on ( RSA * rsa,
BN_CTX * ctx )

◆ RSA_check_key()

int RSA_check_key ( const RSA * )

◆ RSA_check_key_ex()

int RSA_check_key_ex ( const RSA * ,
BN_GENCB * cb )

◆ RSA_clear_flags()

void RSA_clear_flags ( RSA * r,
int flags )

◆ RSA_flags()

int RSA_flags ( const RSA * r)

◆ RSA_free()

void RSA_free ( RSA * r)

◆ RSA_generate_multi_prime_key()

int RSA_generate_multi_prime_key ( RSA * rsa,
int bits,
int primes,
BIGNUM * e,
BN_GENCB * cb )

◆ RSA_get0_crt_params()

void RSA_get0_crt_params ( const RSA * r,
const BIGNUM ** dmp1,
const BIGNUM ** dmq1,
const BIGNUM ** iqmp )

◆ RSA_get0_d()

const BIGNUM * RSA_get0_d ( const RSA * d)

◆ RSA_get0_dmp1()

const BIGNUM * RSA_get0_dmp1 ( const RSA * r)

◆ RSA_get0_dmq1()

const BIGNUM * RSA_get0_dmq1 ( const RSA * r)

◆ RSA_get0_e()

const BIGNUM * RSA_get0_e ( const RSA * d)

◆ RSA_get0_engine()

ENGINE * RSA_get0_engine ( const RSA * r)

◆ RSA_get0_factors()

void RSA_get0_factors ( const RSA * r,
const BIGNUM ** p,
const BIGNUM ** q )

◆ RSA_get0_iqmp()

const BIGNUM * RSA_get0_iqmp ( const RSA * r)

◆ RSA_get0_key()

void RSA_get0_key ( const RSA * r,
const BIGNUM ** n,
const BIGNUM ** e,
const BIGNUM ** d )

◆ RSA_get0_multi_prime_crt_params()

int RSA_get0_multi_prime_crt_params ( const RSA * r,
const BIGNUM * exps[],
const BIGNUM * coeffs[] )

◆ RSA_get0_multi_prime_factors()

int RSA_get0_multi_prime_factors ( const RSA * r,
const BIGNUM * primes[] )

◆ RSA_get0_n()

const BIGNUM * RSA_get0_n ( const RSA * d)

◆ RSA_get0_p()

const BIGNUM * RSA_get0_p ( const RSA * d)

◆ RSA_get0_pss_params()

const RSA_PSS_PARAMS * RSA_get0_pss_params ( const RSA * r)

◆ RSA_get0_q()

const BIGNUM * RSA_get0_q ( const RSA * d)

◆ RSA_get_default_method()

const RSA_METHOD * RSA_get_default_method ( void )

◆ RSA_get_ex_data()

void * RSA_get_ex_data ( const RSA * r,
int idx )

◆ RSA_get_method()

const RSA_METHOD * RSA_get_method ( const RSA * rsa)

◆ RSA_get_multi_prime_extra_count()

int RSA_get_multi_prime_extra_count ( const RSA * r)

◆ RSA_get_version()

int RSA_get_version ( RSA * r)

◆ RSA_meth_dup()

RSA_METHOD * RSA_meth_dup ( const RSA_METHOD * meth)

◆ RSA_meth_free()

void RSA_meth_free ( RSA_METHOD * meth)

◆ RSA_meth_get0_app_data()

void * RSA_meth_get0_app_data ( const RSA_METHOD * meth)

◆ RSA_meth_get0_name()

const char * RSA_meth_get0_name ( const RSA_METHOD * meth)

◆ RSA_meth_get_flags()

int RSA_meth_get_flags ( const RSA_METHOD * meth)

◆ RSA_meth_new()

RSA_METHOD * RSA_meth_new ( const char * name,
int flags )

◆ RSA_meth_set0_app_data()

int RSA_meth_set0_app_data ( RSA_METHOD * meth,
void * app_data )

◆ RSA_meth_set1_name()

int RSA_meth_set1_name ( RSA_METHOD * meth,
const char * name )

◆ RSA_meth_set_bn_mod_exp()

int RSA_meth_set_bn_mod_exp ( RSA_METHOD * rsa,
int(*)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) bn_mod_exp )

◆ RSA_meth_set_finish()

int RSA_meth_set_finish ( RSA_METHOD * rsa,
int(*)(RSA *rsa) finish )

◆ RSA_meth_set_flags()

int RSA_meth_set_flags ( RSA_METHOD * meth,
int flags )

◆ RSA_meth_set_init()

int RSA_meth_set_init ( RSA_METHOD * rsa,
int(*)(RSA *rsa) init )

◆ RSA_meth_set_keygen()

int RSA_meth_set_keygen ( RSA_METHOD * rsa,
int(*)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb) keygen )

◆ RSA_meth_set_mod_exp()

int RSA_meth_set_mod_exp ( RSA_METHOD * rsa,
int(*)(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx) mod_exp )

◆ RSA_meth_set_multi_prime_keygen()

int RSA_meth_set_multi_prime_keygen ( RSA_METHOD * meth,
int(*)(RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb) keygen )

◆ RSA_meth_set_priv_dec()

int RSA_meth_set_priv_dec ( RSA_METHOD * rsa,
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) priv_dec )

◆ RSA_meth_set_priv_enc()

int RSA_meth_set_priv_enc ( RSA_METHOD * rsa,
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) priv_enc )

◆ RSA_meth_set_pub_dec()

int RSA_meth_set_pub_dec ( RSA_METHOD * rsa,
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) pub_dec )

◆ RSA_meth_set_pub_enc()

int RSA_meth_set_pub_enc ( RSA_METHOD * rsa,
int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) pub_enc )

◆ RSA_meth_set_sign()

int RSA_meth_set_sign ( RSA_METHOD * rsa,
int(*)(int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa) sign )

◆ RSA_meth_set_verify()

int RSA_meth_set_verify ( RSA_METHOD * rsa,
int(*)(int dtype, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) verify )

◆ RSA_new()

RSA * RSA_new ( void )

◆ RSA_new_method()

RSA * RSA_new_method ( ENGINE * engine)

◆ RSA_null_method()

const RSA_METHOD * RSA_null_method ( void )

◆ RSA_padding_add_none()

int RSA_padding_add_none ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl )

◆ RSA_padding_add_PKCS1_OAEP()

int RSA_padding_add_PKCS1_OAEP ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
const unsigned char * p,
int pl )

◆ RSA_padding_add_PKCS1_OAEP_mgf1()

int RSA_padding_add_PKCS1_OAEP_mgf1 ( unsigned char * to,
int tlen,
const unsigned char * from,
int flen,
const unsigned char * param,
int plen,
const EVP_MD * md,
const EVP_MD * mgf1md )

◆ RSA_padding_add_PKCS1_PSS()

int RSA_padding_add_PKCS1_PSS ( RSA * rsa,
unsigned char * EM,
const unsigned char * mHash,
const EVP_MD * Hash,
int sLen )

◆ RSA_padding_add_PKCS1_PSS_mgf1()

int RSA_padding_add_PKCS1_PSS_mgf1 ( RSA * rsa,
unsigned char * EM,
const unsigned char * mHash,
const EVP_MD * Hash,
const EVP_MD * mgf1Hash,
int sLen )

◆ RSA_padding_add_PKCS1_type_1()

int RSA_padding_add_PKCS1_type_1 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl )

◆ RSA_padding_add_PKCS1_type_2()

int RSA_padding_add_PKCS1_type_2 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl )

◆ RSA_padding_add_SSLv23()

int RSA_padding_add_SSLv23 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl )

◆ RSA_padding_add_X931()

int RSA_padding_add_X931 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl )

◆ RSA_padding_check_none()

int RSA_padding_check_none ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
int rsa_len )

◆ RSA_padding_check_PKCS1_OAEP()

int RSA_padding_check_PKCS1_OAEP ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
int rsa_len,
const unsigned char * p,
int pl )

◆ RSA_padding_check_PKCS1_OAEP_mgf1()

int RSA_padding_check_PKCS1_OAEP_mgf1 ( unsigned char * to,
int tlen,
const unsigned char * from,
int flen,
int num,
const unsigned char * param,
int plen,
const EVP_MD * md,
const EVP_MD * mgf1md )

◆ RSA_padding_check_PKCS1_type_1()

int RSA_padding_check_PKCS1_type_1 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
int rsa_len )

◆ RSA_padding_check_PKCS1_type_2()

int RSA_padding_check_PKCS1_type_2 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
int rsa_len )

◆ RSA_padding_check_SSLv23()

int RSA_padding_check_SSLv23 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
int rsa_len )

◆ RSA_padding_check_X931()

int RSA_padding_check_X931 ( unsigned char * to,
int tlen,
const unsigned char * f,
int fl,
int rsa_len )

◆ RSA_PKCS1_OpenSSL()

const RSA_METHOD * RSA_PKCS1_OpenSSL ( void )

◆ RSA_pkey_ctx_ctrl()

int RSA_pkey_ctx_ctrl ( EVP_PKEY_CTX * ctx,
int optype,
int cmd,
int p1,
void * p2 )

◆ RSA_print()

int RSA_print ( BIO * bp,
const RSA * r,
int offset )

◆ RSA_print_fp()

int RSA_print_fp ( FILE * fp,
const RSA * r,
int offset )

◆ RSA_private_decrypt()

int RSA_private_decrypt ( int flen,
const unsigned char * from,
unsigned char * to,
RSA * rsa,
int padding )

◆ RSA_private_encrypt()

int RSA_private_encrypt ( int flen,
const unsigned char * from,
unsigned char * to,
RSA * rsa,
int padding )

◆ RSA_public_decrypt()

int RSA_public_decrypt ( int flen,
const unsigned char * from,
unsigned char * to,
RSA * rsa,
int padding )

◆ RSA_public_encrypt()

int RSA_public_encrypt ( int flen,
const unsigned char * from,
unsigned char * to,
RSA * rsa,
int padding )

◆ RSA_security_bits()

int RSA_security_bits ( const RSA * rsa)

◆ RSA_set0_crt_params()

int RSA_set0_crt_params ( RSA * r,
BIGNUM * dmp1,
BIGNUM * dmq1,
BIGNUM * iqmp )

◆ RSA_set0_factors()

int RSA_set0_factors ( RSA * r,
BIGNUM * p,
BIGNUM * q )

◆ RSA_set0_key()

int RSA_set0_key ( RSA * r,
BIGNUM * n,
BIGNUM * e,
BIGNUM * d )

◆ RSA_set0_multi_prime_params()

int RSA_set0_multi_prime_params ( RSA * r,
BIGNUM * primes[],
BIGNUM * exps[],
BIGNUM * coeffs[],
int pnum )

◆ RSA_set_default_method()

void RSA_set_default_method ( const RSA_METHOD * meth)

◆ RSA_set_ex_data()

int RSA_set_ex_data ( RSA * r,
int idx,
void * arg )

◆ RSA_set_flags()

void RSA_set_flags ( RSA * r,
int flags )

◆ RSA_set_method()

int RSA_set_method ( RSA * rsa,
const RSA_METHOD * meth )

◆ RSA_setup_blinding()

BN_BLINDING * RSA_setup_blinding ( RSA * rsa,
BN_CTX * ctx )

◆ RSA_sign()

int RSA_sign ( int type,
const unsigned char * m,
unsigned int m_length,
unsigned char * sigret,
unsigned int * siglen,
RSA * rsa )

◆ RSA_sign_ASN1_OCTET_STRING()

int RSA_sign_ASN1_OCTET_STRING ( int type,
const unsigned char * m,
unsigned int m_length,
unsigned char * sigret,
unsigned int * siglen,
RSA * rsa )

◆ RSA_size()

int RSA_size ( const RSA * rsa)

◆ RSA_test_flags()

int RSA_test_flags ( const RSA * r,
int flags )

◆ RSA_up_ref()

int RSA_up_ref ( RSA * r)

◆ RSA_verify()

int RSA_verify ( int type,
const unsigned char * m,
unsigned int m_length,
const unsigned char * sigbuf,
unsigned int siglen,
RSA * rsa )

◆ RSA_verify_ASN1_OCTET_STRING()

int RSA_verify_ASN1_OCTET_STRING ( int type,
const unsigned char * m,
unsigned int m_length,
unsigned char * sigbuf,
unsigned int siglen,
RSA * rsa )

◆ RSA_verify_PKCS1_PSS()

int RSA_verify_PKCS1_PSS ( RSA * rsa,
const unsigned char * mHash,
const EVP_MD * Hash,
const unsigned char * EM,
int sLen )

◆ RSA_verify_PKCS1_PSS_mgf1()

int RSA_verify_PKCS1_PSS_mgf1 ( RSA * rsa,
const unsigned char * mHash,
const EVP_MD * Hash,
const EVP_MD * mgf1Hash,
const unsigned char * EM,
int sLen )

◆ RSA_X931_derive_ex()

int RSA_X931_derive_ex ( RSA * rsa,
BIGNUM * p1,
BIGNUM * p2,
BIGNUM * q1,
BIGNUM * q2,
const BIGNUM * Xp1,
const BIGNUM * Xp2,
const BIGNUM * Xp,
const BIGNUM * Xq1,
const BIGNUM * Xq2,
const BIGNUM * Xq,
const BIGNUM * e,
BN_GENCB * cb )

◆ RSA_X931_generate_key_ex()

int RSA_X931_generate_key_ex ( RSA * rsa,
int bits,
const BIGNUM * e,
BN_GENCB * cb )

◆ RSA_X931_hash_id()

int RSA_X931_hash_id ( int nid)

◆ RSAPrivateKey_dup()

RSA * RSAPrivateKey_dup ( RSA * rsa)

◆ RSAPublicKey_dup()

RSA * RSAPublicKey_dup ( RSA * rsa)

Variable Documentation

◆ bits

int bits

Definition at line 239 of file rsa.h.

◆ cb

int BIGNUM BN_GENCB* cb

Definition at line 239 of file rsa.h.

◆ e

int BIGNUM* e

Definition at line 239 of file rsa.h.

◆ RSA_meth_get_bn_mod_exp

int(*)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 463 of file rsa.h.

◆ RSA_meth_get_finish

int(*)(RSA *rsa) RSA_meth_get_finish(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 475 of file rsa.h.

◆ RSA_meth_get_init

int(*)(RSA *rsa) RSA_meth_get_init(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 473 of file rsa.h.

◆ RSA_meth_get_keygen

int(*)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb) RSA_meth_get_keygen(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 496 of file rsa.h.

◆ RSA_meth_get_mod_exp

int(*)(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx) RSA_meth_get_mod_exp(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 458 of file rsa.h.

◆ RSA_meth_get_multi_prime_keygen

int(*)(RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb) RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 501 of file rsa.h.

◆ RSA_meth_get_priv_dec

int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_priv_dec(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 451 of file rsa.h.

◆ RSA_meth_get_priv_enc

int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_priv_enc(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 444 of file rsa.h.

◆ RSA_meth_get_pub_dec

int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_pub_dec(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 437 of file rsa.h.

◆ RSA_meth_get_pub_enc

int(*)(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) RSA_meth_get_pub_enc(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 430 of file rsa.h.

◆ RSA_meth_get_sign

int(*)(int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa) RSA_meth_get_sign(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 477 of file rsa.h.

◆ RSA_meth_get_verify

int(*)(int dtype, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) RSA_meth_get_verify(const RSA_METHOD *meth) ( const RSA_METHOD * meth)

Definition at line 487 of file rsa.h.