Classes | Macros | Typedefs | Functions
rsa.h File Reference
#include <openssl/base.h>
#include <openssl/engine.h>
#include <openssl/ex_data.h>
#include <openssl/thread.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_meth_st
 
struct  rsa_st
 

Macros

#define RSA_3   0x3
 
#define RSA_F4   0x10001
 
#define RSA_FLAG_EXT_PKEY   0x20
 
#define RSA_FLAG_NO_BLINDING   8
 
#define RSA_FLAG_OPAQUE   1
 
#define RSA_METHOD_FLAG_NO_CHECK   RSA_FLAG_OPAQUE
 
#define RSA_NO_PADDING   3
 
#define RSA_PKCS1_OAEP_PADDING   4
 
#define RSA_PKCS1_PADDING   1
 
#define RSA_PKCS1_PSS_PADDING   6
 
#define RSA_R_BAD_E_VALUE   101
 
#define RSA_R_BAD_ENCODING   100
 
#define RSA_R_BAD_FIXED_HEADER_DECRYPT   102
 
#define RSA_R_BAD_PAD_BYTE_COUNT   103
 
#define RSA_R_BAD_RSA_PARAMETERS   104
 
#define RSA_R_BAD_SIGNATURE   105
 
#define RSA_R_BAD_VERSION   106
 
#define RSA_R_BLOCK_TYPE_IS_NOT_01   107
 
#define RSA_R_BLOCK_TYPE_IS_NOT_02   148
 
#define RSA_R_BN_NOT_INITIALIZED   108
 
#define RSA_R_CANNOT_RECOVER_MULTI_PRIME_KEY   109
 
#define RSA_R_CRT_PARAMS_ALREADY_GIVEN   110
 
#define RSA_R_CRT_VALUES_INCORRECT   111
 
#define RSA_R_D_E_NOT_CONGRUENT_TO_1   119
 
#define RSA_R_D_OUT_OF_RANGE   147
 
#define RSA_R_DATA_LEN_NOT_EQUAL_TO_MOD_LEN   112
 
#define RSA_R_DATA_TOO_LARGE   113
 
#define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE   114
 
#define RSA_R_DATA_TOO_LARGE_FOR_MODULUS   115
 
#define RSA_R_DATA_TOO_SMALL   116
 
#define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE   117
 
#define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY   118
 
#define RSA_R_EMPTY_PUBLIC_KEY   120
 
#define RSA_R_ENCODE_ERROR   121
 
#define RSA_R_FIRST_OCTET_INVALID   122
 
#define RSA_R_INCONSISTENT_SET_OF_CRT_VALUES   123
 
#define RSA_R_INTERNAL_ERROR   124
 
#define RSA_R_INVALID_MESSAGE_LENGTH   125
 
#define RSA_R_KEY_SIZE_TOO_SMALL   126
 
#define RSA_R_LAST_OCTET_INVALID   127
 
#define RSA_R_MODULUS_TOO_LARGE   128
 
#define RSA_R_MUST_HAVE_AT_LEAST_TWO_PRIMES   129
 
#define RSA_R_N_NOT_EQUAL_P_Q   132
 
#define RSA_R_NO_PUBLIC_EXPONENT   130
 
#define RSA_R_NULL_BEFORE_BLOCK_MISSING   131
 
#define RSA_R_OAEP_DECODING_ERROR   133
 
#define RSA_R_ONLY_ONE_OF_P_Q_GIVEN   134
 
#define RSA_R_OUTPUT_BUFFER_TOO_SMALL   135
 
#define RSA_R_PADDING_CHECK_FAILED   136
 
#define RSA_R_PKCS_DECODING_ERROR   137
 
#define RSA_R_PUBLIC_KEY_VALIDATION_FAILED   146
 
#define RSA_R_SLEN_CHECK_FAILED   138
 
#define RSA_R_SLEN_RECOVERY_FAILED   139
 
#define RSA_R_TOO_LONG   140
 
#define RSA_R_TOO_MANY_ITERATIONS   141
 
#define RSA_R_UNKNOWN_ALGORITHM_TYPE   142
 
#define RSA_R_UNKNOWN_PADDING_TYPE   143
 
#define RSA_R_VALUE_MISSING   144
 
#define RSA_R_WRONG_SIGNATURE_LENGTH   145
 

Typedefs

typedef struct bn_blinding_st BN_BLINDING
 

Functions

OPENSSL_EXPORT RSAd2i_RSAPrivateKey (RSA **out, const uint8_t **inp, long len)
 
OPENSSL_EXPORT RSAd2i_RSAPublicKey (RSA **out, const uint8_t **inp, long len)
 
OPENSSL_EXPORT int i2d_RSAPrivateKey (const RSA *in, uint8_t **outp)
 
OPENSSL_EXPORT int i2d_RSAPublicKey (const RSA *in, uint8_t **outp)
 
OPENSSL_EXPORT int RSA_add_pkcs1_prefix (uint8_t **out_msg, size_t *out_msg_len, int *is_alloced, int hash_nid, const uint8_t *digest, size_t digest_len)
 
OPENSSL_EXPORT unsigned RSA_bits (const RSA *rsa)
 
OPENSSL_EXPORT int RSA_blinding_on (RSA *rsa, BN_CTX *ctx)
 
OPENSSL_EXPORT int RSA_check_fips (RSA *key)
 
OPENSSL_EXPORT int RSA_check_key (const RSA *rsa)
 
OPENSSL_EXPORT int RSA_decrypt (RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, const uint8_t *in, size_t in_len, int padding)
 
OPENSSL_EXPORT int RSA_encrypt (RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, const uint8_t *in, size_t in_len, int padding)
 
OPENSSL_EXPORT int RSA_flags (const RSA *rsa)
 
OPENSSL_EXPORT void RSA_free (RSA *rsa)
 
OPENSSL_EXPORT RSARSA_generate_key (int bits, unsigned long e, void *callback, void *cb_arg)
 
OPENSSL_EXPORT int RSA_generate_key_ex (RSA *rsa, int bits, const BIGNUM *e, BN_GENCB *cb)
 
OPENSSL_EXPORT int RSA_generate_key_fips (RSA *rsa, int bits, BN_GENCB *cb)
 
OPENSSL_EXPORT void RSA_get0_crt_params (const RSA *rsa, const BIGNUM **out_dmp1, const BIGNUM **out_dmq1, const BIGNUM **out_iqmp)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_d (const RSA *rsa)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_dmp1 (const RSA *rsa)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_dmq1 (const RSA *rsa)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_e (const RSA *rsa)
 
OPENSSL_EXPORT void RSA_get0_factors (const RSA *rsa, const BIGNUM **out_p, const BIGNUM **out_q)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_iqmp (const RSA *rsa)
 
OPENSSL_EXPORT void RSA_get0_key (const RSA *rsa, const BIGNUM **out_n, const BIGNUM **out_e, const BIGNUM **out_d)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_n (const RSA *rsa)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_p (const RSA *rsa)
 
const OPENSSL_EXPORT RSA_PSS_PARAMSRSA_get0_pss_params (const RSA *rsa)
 
const OPENSSL_EXPORT BIGNUMRSA_get0_q (const RSA *rsa)
 
OPENSSL_EXPORT void * RSA_get_ex_data (const RSA *rsa, int idx)
 
OPENSSL_EXPORT int RSA_get_ex_new_index (long argl, void *argp, CRYPTO_EX_unused *unused, CRYPTO_EX_dup *dup_unused, CRYPTO_EX_free *free_func)
 
OPENSSL_EXPORT int RSA_is_opaque (const RSA *rsa)
 
OPENSSL_EXPORT int RSA_marshal_private_key (CBB *cbb, const RSA *rsa)
 
OPENSSL_EXPORT int RSA_marshal_public_key (CBB *cbb, const RSA *rsa)
 
OPENSSL_EXPORT RSARSA_new (void)
 
OPENSSL_EXPORT RSARSA_new_method (const ENGINE *engine)
 
OPENSSL_EXPORT int RSA_padding_add_PKCS1_OAEP (uint8_t *to, size_t to_len, const uint8_t *from, size_t from_len, const uint8_t *param, size_t param_len)
 
OPENSSL_EXPORT int RSA_padding_add_PKCS1_OAEP_mgf1 (uint8_t *to, size_t to_len, const uint8_t *from, size_t from_len, const uint8_t *param, size_t param_len, const EVP_MD *md, const EVP_MD *mgf1md)
 
OPENSSL_EXPORT int RSA_padding_add_PKCS1_PSS (const RSA *rsa, uint8_t *EM, const uint8_t *mHash, const EVP_MD *Hash, int sLen)
 
OPENSSL_EXPORT int RSA_padding_add_PKCS1_PSS_mgf1 (const RSA *rsa, uint8_t *EM, const uint8_t *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, int sLen)
 
OPENSSL_EXPORT RSARSA_parse_private_key (CBS *cbs)
 
OPENSSL_EXPORT RSARSA_parse_public_key (CBS *cbs)
 
OPENSSL_EXPORT int RSA_print (BIO *bio, const RSA *rsa, int indent)
 
OPENSSL_EXPORT int RSA_private_decrypt (size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, int padding)
 
OPENSSL_EXPORT int RSA_private_encrypt (size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, int padding)
 
OPENSSL_EXPORT RSARSA_private_key_from_bytes (const uint8_t *in, size_t in_len)
 
OPENSSL_EXPORT int RSA_private_key_to_bytes (uint8_t **out_bytes, size_t *out_len, const RSA *rsa)
 
OPENSSL_EXPORT int RSA_public_decrypt (size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, int padding)
 
OPENSSL_EXPORT int RSA_public_encrypt (size_t flen, const uint8_t *from, uint8_t *to, RSA *rsa, int padding)
 
OPENSSL_EXPORT RSARSA_public_key_from_bytes (const uint8_t *in, size_t in_len)
 
OPENSSL_EXPORT int RSA_public_key_to_bytes (uint8_t **out_bytes, size_t *out_len, const RSA *rsa)
 
OPENSSL_EXPORT int RSA_set0_crt_params (RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp)
 
OPENSSL_EXPORT int RSA_set0_factors (RSA *rsa, BIGNUM *p, BIGNUM *q)
 
OPENSSL_EXPORT int RSA_set0_key (RSA *rsa, BIGNUM *n, BIGNUM *e, BIGNUM *d)
 
OPENSSL_EXPORT int RSA_set_ex_data (RSA *rsa, int idx, void *arg)
 
OPENSSL_EXPORT int RSA_sign (int hash_nid, const uint8_t *digest, unsigned digest_len, uint8_t *out, unsigned *out_len, RSA *rsa)
 
OPENSSL_EXPORT int RSA_sign_pss_mgf1 (RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, const uint8_t *digest, size_t digest_len, const EVP_MD *md, const EVP_MD *mgf1_md, int salt_len)
 
OPENSSL_EXPORT int RSA_sign_raw (RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, const uint8_t *in, size_t in_len, int padding)
 
OPENSSL_EXPORT unsigned RSA_size (const RSA *rsa)
 
OPENSSL_EXPORT int RSA_up_ref (RSA *rsa)
 
OPENSSL_EXPORT int RSA_verify (int hash_nid, const uint8_t *digest, size_t digest_len, const uint8_t *sig, size_t sig_len, RSA *rsa)
 
OPENSSL_EXPORT int RSA_verify_PKCS1_PSS (const RSA *rsa, const uint8_t *mHash, const EVP_MD *Hash, const uint8_t *EM, int sLen)
 
OPENSSL_EXPORT int RSA_verify_PKCS1_PSS_mgf1 (const RSA *rsa, const uint8_t *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, const uint8_t *EM, int sLen)
 
OPENSSL_EXPORT int RSA_verify_pss_mgf1 (RSA *rsa, const uint8_t *digest, size_t digest_len, const EVP_MD *md, const EVP_MD *mgf1_md, int salt_len, const uint8_t *sig, size_t sig_len)
 
OPENSSL_EXPORT int RSA_verify_raw (RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, const uint8_t *in, size_t in_len, int padding)
 
OPENSSL_EXPORT RSARSAPrivateKey_dup (const RSA *rsa)
 
OPENSSL_EXPORT RSARSAPublicKey_dup (const RSA *rsa)
 

Macro Definition Documentation

◆ RSA_3

#define RSA_3   0x3

Definition at line 606 of file rsa.h.

◆ RSA_F4

#define RSA_F4   0x10001

Definition at line 607 of file rsa.h.

◆ RSA_FLAG_EXT_PKEY

#define RSA_FLAG_EXT_PKEY   0x20

Definition at line 601 of file rsa.h.

◆ RSA_FLAG_NO_BLINDING

#define RSA_FLAG_NO_BLINDING   8

Definition at line 598 of file rsa.h.

◆ RSA_FLAG_OPAQUE

#define RSA_FLAG_OPAQUE   1

Definition at line 590 of file rsa.h.

◆ RSA_METHOD_FLAG_NO_CHECK

#define RSA_METHOD_FLAG_NO_CHECK   RSA_FLAG_OPAQUE

Definition at line 612 of file rsa.h.

◆ RSA_NO_PADDING

#define RSA_NO_PADDING   3

Definition at line 213 of file rsa.h.

◆ RSA_PKCS1_OAEP_PADDING

#define RSA_PKCS1_OAEP_PADDING   4

Definition at line 216 of file rsa.h.

◆ RSA_PKCS1_PADDING

#define RSA_PKCS1_PADDING   1

Definition at line 210 of file rsa.h.

◆ RSA_PKCS1_PSS_PADDING

#define RSA_PKCS1_PSS_PADDING   6

Definition at line 221 of file rsa.h.

◆ RSA_R_BAD_E_VALUE

#define RSA_R_BAD_E_VALUE   101

Definition at line 806 of file rsa.h.

◆ RSA_R_BAD_ENCODING

#define RSA_R_BAD_ENCODING   100

Definition at line 805 of file rsa.h.

◆ RSA_R_BAD_FIXED_HEADER_DECRYPT

#define RSA_R_BAD_FIXED_HEADER_DECRYPT   102

Definition at line 807 of file rsa.h.

◆ RSA_R_BAD_PAD_BYTE_COUNT

#define RSA_R_BAD_PAD_BYTE_COUNT   103

Definition at line 808 of file rsa.h.

◆ RSA_R_BAD_RSA_PARAMETERS

#define RSA_R_BAD_RSA_PARAMETERS   104

Definition at line 809 of file rsa.h.

◆ RSA_R_BAD_SIGNATURE

#define RSA_R_BAD_SIGNATURE   105

Definition at line 810 of file rsa.h.

◆ RSA_R_BAD_VERSION

#define RSA_R_BAD_VERSION   106

Definition at line 811 of file rsa.h.

◆ RSA_R_BLOCK_TYPE_IS_NOT_01

#define RSA_R_BLOCK_TYPE_IS_NOT_01   107

Definition at line 812 of file rsa.h.

◆ RSA_R_BLOCK_TYPE_IS_NOT_02

#define RSA_R_BLOCK_TYPE_IS_NOT_02   148

Definition at line 853 of file rsa.h.

◆ RSA_R_BN_NOT_INITIALIZED

#define RSA_R_BN_NOT_INITIALIZED   108

Definition at line 813 of file rsa.h.

◆ RSA_R_CANNOT_RECOVER_MULTI_PRIME_KEY

#define RSA_R_CANNOT_RECOVER_MULTI_PRIME_KEY   109

Definition at line 814 of file rsa.h.

◆ RSA_R_CRT_PARAMS_ALREADY_GIVEN

#define RSA_R_CRT_PARAMS_ALREADY_GIVEN   110

Definition at line 815 of file rsa.h.

◆ RSA_R_CRT_VALUES_INCORRECT

#define RSA_R_CRT_VALUES_INCORRECT   111

Definition at line 816 of file rsa.h.

◆ RSA_R_D_E_NOT_CONGRUENT_TO_1

#define RSA_R_D_E_NOT_CONGRUENT_TO_1   119

Definition at line 824 of file rsa.h.

◆ RSA_R_D_OUT_OF_RANGE

#define RSA_R_D_OUT_OF_RANGE   147

Definition at line 852 of file rsa.h.

◆ RSA_R_DATA_LEN_NOT_EQUAL_TO_MOD_LEN

#define RSA_R_DATA_LEN_NOT_EQUAL_TO_MOD_LEN   112

Definition at line 817 of file rsa.h.

◆ RSA_R_DATA_TOO_LARGE

#define RSA_R_DATA_TOO_LARGE   113

Definition at line 818 of file rsa.h.

◆ RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE

#define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE   114

Definition at line 819 of file rsa.h.

◆ RSA_R_DATA_TOO_LARGE_FOR_MODULUS

#define RSA_R_DATA_TOO_LARGE_FOR_MODULUS   115

Definition at line 820 of file rsa.h.

◆ RSA_R_DATA_TOO_SMALL

#define RSA_R_DATA_TOO_SMALL   116

Definition at line 821 of file rsa.h.

◆ RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE

#define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE   117

Definition at line 822 of file rsa.h.

◆ RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY

#define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY   118

Definition at line 823 of file rsa.h.

◆ RSA_R_EMPTY_PUBLIC_KEY

#define RSA_R_EMPTY_PUBLIC_KEY   120

Definition at line 825 of file rsa.h.

◆ RSA_R_ENCODE_ERROR

#define RSA_R_ENCODE_ERROR   121

Definition at line 826 of file rsa.h.

◆ RSA_R_FIRST_OCTET_INVALID

#define RSA_R_FIRST_OCTET_INVALID   122

Definition at line 827 of file rsa.h.

◆ RSA_R_INCONSISTENT_SET_OF_CRT_VALUES

#define RSA_R_INCONSISTENT_SET_OF_CRT_VALUES   123

Definition at line 828 of file rsa.h.

◆ RSA_R_INTERNAL_ERROR

#define RSA_R_INTERNAL_ERROR   124

Definition at line 829 of file rsa.h.

◆ RSA_R_INVALID_MESSAGE_LENGTH

#define RSA_R_INVALID_MESSAGE_LENGTH   125

Definition at line 830 of file rsa.h.

◆ RSA_R_KEY_SIZE_TOO_SMALL

#define RSA_R_KEY_SIZE_TOO_SMALL   126

Definition at line 831 of file rsa.h.

◆ RSA_R_LAST_OCTET_INVALID

#define RSA_R_LAST_OCTET_INVALID   127

Definition at line 832 of file rsa.h.

◆ RSA_R_MODULUS_TOO_LARGE

#define RSA_R_MODULUS_TOO_LARGE   128

Definition at line 833 of file rsa.h.

◆ RSA_R_MUST_HAVE_AT_LEAST_TWO_PRIMES

#define RSA_R_MUST_HAVE_AT_LEAST_TWO_PRIMES   129

Definition at line 834 of file rsa.h.

◆ RSA_R_N_NOT_EQUAL_P_Q

#define RSA_R_N_NOT_EQUAL_P_Q   132

Definition at line 837 of file rsa.h.

◆ RSA_R_NO_PUBLIC_EXPONENT

#define RSA_R_NO_PUBLIC_EXPONENT   130

Definition at line 835 of file rsa.h.

◆ RSA_R_NULL_BEFORE_BLOCK_MISSING

#define RSA_R_NULL_BEFORE_BLOCK_MISSING   131

Definition at line 836 of file rsa.h.

◆ RSA_R_OAEP_DECODING_ERROR

#define RSA_R_OAEP_DECODING_ERROR   133

Definition at line 838 of file rsa.h.

◆ RSA_R_ONLY_ONE_OF_P_Q_GIVEN

#define RSA_R_ONLY_ONE_OF_P_Q_GIVEN   134

Definition at line 839 of file rsa.h.

◆ RSA_R_OUTPUT_BUFFER_TOO_SMALL

#define RSA_R_OUTPUT_BUFFER_TOO_SMALL   135

Definition at line 840 of file rsa.h.

◆ RSA_R_PADDING_CHECK_FAILED

#define RSA_R_PADDING_CHECK_FAILED   136

Definition at line 841 of file rsa.h.

◆ RSA_R_PKCS_DECODING_ERROR

#define RSA_R_PKCS_DECODING_ERROR   137

Definition at line 842 of file rsa.h.

◆ RSA_R_PUBLIC_KEY_VALIDATION_FAILED

#define RSA_R_PUBLIC_KEY_VALIDATION_FAILED   146

Definition at line 851 of file rsa.h.

◆ RSA_R_SLEN_CHECK_FAILED

#define RSA_R_SLEN_CHECK_FAILED   138

Definition at line 843 of file rsa.h.

◆ RSA_R_SLEN_RECOVERY_FAILED

#define RSA_R_SLEN_RECOVERY_FAILED   139

Definition at line 844 of file rsa.h.

◆ RSA_R_TOO_LONG

#define RSA_R_TOO_LONG   140

Definition at line 845 of file rsa.h.

◆ RSA_R_TOO_MANY_ITERATIONS

#define RSA_R_TOO_MANY_ITERATIONS   141

Definition at line 846 of file rsa.h.

◆ RSA_R_UNKNOWN_ALGORITHM_TYPE

#define RSA_R_UNKNOWN_ALGORITHM_TYPE   142

Definition at line 847 of file rsa.h.

◆ RSA_R_UNKNOWN_PADDING_TYPE

#define RSA_R_UNKNOWN_PADDING_TYPE   143

Definition at line 848 of file rsa.h.

◆ RSA_R_VALUE_MISSING

#define RSA_R_VALUE_MISSING   144

Definition at line 849 of file rsa.h.

◆ RSA_R_WRONG_SIGNATURE_LENGTH

#define RSA_R_WRONG_SIGNATURE_LENGTH   145

Definition at line 850 of file rsa.h.

Typedef Documentation

◆ BN_BLINDING

typedef struct bn_blinding_st BN_BLINDING

Definition at line 730 of file rsa.h.

Function Documentation

◆ d2i_RSAPrivateKey()

OPENSSL_EXPORT RSA* d2i_RSAPrivateKey ( RSA **  out,
const uint8_t **  inp,
long  len 
)

Definition at line 276 of file rsa_asn1.c.

◆ d2i_RSAPublicKey()

OPENSSL_EXPORT RSA* d2i_RSAPublicKey ( RSA **  out,
const uint8_t **  inp,
long  len 
)

Definition at line 248 of file rsa_asn1.c.

◆ i2d_RSAPrivateKey()

OPENSSL_EXPORT int i2d_RSAPrivateKey ( const RSA in,
uint8_t **  outp 
)

Definition at line 294 of file rsa_asn1.c.

◆ i2d_RSAPublicKey()

OPENSSL_EXPORT int i2d_RSAPublicKey ( const RSA in,
uint8_t **  outp 
)

Definition at line 266 of file rsa_asn1.c.

◆ RSA_add_pkcs1_prefix()

OPENSSL_EXPORT int RSA_add_pkcs1_prefix ( uint8_t **  out_msg,
size_t *  out_msg_len,
int is_alloced,
int  hash_nid,
const uint8_t digest,
size_t  digest_len 
)

Definition at line 466 of file rsa.c.

◆ RSA_bits()

OPENSSL_EXPORT unsigned RSA_bits ( const RSA rsa)

Definition at line 168 of file rsa.c.

◆ RSA_blinding_on()

OPENSSL_EXPORT int RSA_blinding_on ( RSA rsa,
BN_CTX ctx 
)

Definition at line 933 of file rsa.c.

◆ RSA_check_fips()

OPENSSL_EXPORT int RSA_check_fips ( RSA key)

Definition at line 839 of file rsa.c.

◆ RSA_check_key()

OPENSSL_EXPORT int RSA_check_key ( const RSA rsa)

Definition at line 688 of file rsa.c.

◆ RSA_decrypt()

OPENSSL_EXPORT int RSA_decrypt ( RSA rsa,
size_t *  out_len,
uint8_t out,
size_t  max_out,
const uint8_t in,
size_t  in_len,
int  padding 
)

Definition at line 330 of file rsa.c.

◆ RSA_encrypt()

OPENSSL_EXPORT int RSA_encrypt ( RSA rsa,
size_t *  out_len,
uint8_t out,
size_t  max_out,
const uint8_t in,
size_t  in_len,
int  padding 
)

Definition at line 262 of file rsa_impl.c.

◆ RSA_flags()

OPENSSL_EXPORT int RSA_flags ( const RSA rsa)

Definition at line 931 of file rsa.c.

◆ RSA_free()

OPENSSL_EXPORT void RSA_free ( RSA rsa)

Definition at line 121 of file rsa.c.

◆ RSA_generate_key()

OPENSSL_EXPORT RSA* RSA_generate_key ( int  bits,
unsigned long  e,
void *  callback,
void *  cb_arg 
)

Definition at line 64 of file rsa_decrepit.c.

◆ RSA_generate_key_ex()

OPENSSL_EXPORT int RSA_generate_key_ex ( RSA rsa,
int  bits,
const BIGNUM e,
BN_GENCB cb 
)

Definition at line 1386 of file rsa_impl.c.

◆ RSA_generate_key_fips()

OPENSSL_EXPORT int RSA_generate_key_fips ( RSA rsa,
int  bits,
BN_GENCB cb 
)

Definition at line 1392 of file rsa_impl.c.

◆ RSA_get0_crt_params()

OPENSSL_EXPORT void RSA_get0_crt_params ( const RSA rsa,
const BIGNUM **  out_dmp1,
const BIGNUM **  out_dmq1,
const BIGNUM **  out_iqmp 
)

Definition at line 215 of file rsa.c.

◆ RSA_get0_d()

const OPENSSL_EXPORT BIGNUM* RSA_get0_d ( const RSA rsa)

Definition at line 174 of file rsa.c.

◆ RSA_get0_dmp1()

const OPENSSL_EXPORT BIGNUM* RSA_get0_dmp1 ( const RSA rsa)

Definition at line 180 of file rsa.c.

◆ RSA_get0_dmq1()

const OPENSSL_EXPORT BIGNUM* RSA_get0_dmq1 ( const RSA rsa)

Definition at line 182 of file rsa.c.

◆ RSA_get0_e()

const OPENSSL_EXPORT BIGNUM* RSA_get0_e ( const RSA rsa)

Definition at line 172 of file rsa.c.

◆ RSA_get0_factors()

OPENSSL_EXPORT void RSA_get0_factors ( const RSA rsa,
const BIGNUM **  out_p,
const BIGNUM **  out_q 
)

Definition at line 199 of file rsa.c.

◆ RSA_get0_iqmp()

const OPENSSL_EXPORT BIGNUM* RSA_get0_iqmp ( const RSA rsa)

Definition at line 184 of file rsa.c.

◆ RSA_get0_key()

OPENSSL_EXPORT void RSA_get0_key ( const RSA rsa,
const BIGNUM **  out_n,
const BIGNUM **  out_e,
const BIGNUM **  out_d 
)

Definition at line 186 of file rsa.c.

◆ RSA_get0_n()

const OPENSSL_EXPORT BIGNUM* RSA_get0_n ( const RSA rsa)

Definition at line 170 of file rsa.c.

◆ RSA_get0_p()

const OPENSSL_EXPORT BIGNUM* RSA_get0_p ( const RSA rsa)

Definition at line 176 of file rsa.c.

◆ RSA_get0_pss_params()

const OPENSSL_EXPORT RSA_PSS_PARAMS* RSA_get0_pss_params ( const RSA rsa)

Definition at line 209 of file rsa.c.

◆ RSA_get0_q()

const OPENSSL_EXPORT BIGNUM* RSA_get0_q ( const RSA rsa)

Definition at line 178 of file rsa.c.

◆ RSA_get_ex_data()

OPENSSL_EXPORT void* RSA_get_ex_data ( const RSA rsa,
int  idx 
)

Definition at line 395 of file rsa.c.

◆ RSA_get_ex_new_index()

OPENSSL_EXPORT int RSA_get_ex_new_index ( long  argl,
void *  argp,
CRYPTO_EX_unused unused,
CRYPTO_EX_dup dup_unused,
CRYPTO_EX_free free_func 
)

Definition at line 381 of file rsa.c.

◆ RSA_is_opaque()

OPENSSL_EXPORT int RSA_is_opaque ( const RSA rsa)

Definition at line 377 of file rsa.c.

◆ RSA_marshal_private_key()

OPENSSL_EXPORT int RSA_marshal_private_key ( CBB cbb,
const RSA rsa 
)

Definition at line 215 of file rsa_asn1.c.

◆ RSA_marshal_public_key()

OPENSSL_EXPORT int RSA_marshal_public_key ( CBB cbb,
const RSA rsa 
)

Definition at line 126 of file rsa_asn1.c.

◆ RSA_new()

OPENSSL_EXPORT RSA* RSA_new ( void  )

Definition at line 85 of file rsa.c.

◆ RSA_new_method()

OPENSSL_EXPORT RSA* RSA_new_method ( const ENGINE engine)

Definition at line 87 of file rsa.c.

◆ RSA_padding_add_PKCS1_OAEP()

OPENSSL_EXPORT int RSA_padding_add_PKCS1_OAEP ( uint8_t to,
size_t  to_len,
const uint8_t from,
size_t  from_len,
const uint8_t param,
size_t  param_len 
)

Definition at line 98 of file rsa_decrepit.c.

◆ RSA_padding_add_PKCS1_OAEP_mgf1()

OPENSSL_EXPORT int RSA_padding_add_PKCS1_OAEP_mgf1 ( uint8_t to,
size_t  to_len,
const uint8_t from,
size_t  from_len,
const uint8_t param,
size_t  param_len,
const EVP_MD md,
const EVP_MD mgf1md 
)

Definition at line 316 of file padding.c.

◆ RSA_padding_add_PKCS1_PSS()

OPENSSL_EXPORT int RSA_padding_add_PKCS1_PSS ( const RSA rsa,
uint8_t EM,
const uint8_t mHash,
const EVP_MD Hash,
int  sLen 
)

Definition at line 88 of file rsa_decrepit.c.

◆ RSA_padding_add_PKCS1_PSS_mgf1()

OPENSSL_EXPORT int RSA_padding_add_PKCS1_PSS_mgf1 ( const RSA rsa,
uint8_t EM,
const uint8_t mHash,
const EVP_MD Hash,
const EVP_MD mgf1Hash,
int  sLen 
)

Definition at line 585 of file padding.c.

◆ RSA_parse_private_key()

OPENSSL_EXPORT RSA* RSA_parse_private_key ( CBS cbs)

Definition at line 156 of file rsa_asn1.c.

◆ RSA_parse_public_key()

OPENSSL_EXPORT RSA* RSA_parse_public_key ( CBS cbs)

Definition at line 90 of file rsa_asn1.c.

◆ RSA_print()

OPENSSL_EXPORT int RSA_print ( BIO bio,
const RSA rsa,
int  indent 
)

Definition at line 15 of file rsa_print.c.

◆ RSA_private_decrypt()

OPENSSL_EXPORT int RSA_private_decrypt ( size_t  flen,
const uint8_t from,
uint8_t to,
RSA rsa,
int  padding 
)

Definition at line 339 of file rsa.c.

◆ RSA_private_encrypt()

OPENSSL_EXPORT int RSA_private_encrypt ( size_t  flen,
const uint8_t from,
uint8_t to,
RSA rsa,
int  padding 
)

Definition at line 315 of file rsa.c.

◆ RSA_private_key_from_bytes()

OPENSSL_EXPORT RSA* RSA_private_key_from_bytes ( const uint8_t in,
size_t  in_len 
)

Definition at line 203 of file rsa_asn1.c.

◆ RSA_private_key_to_bytes()

OPENSSL_EXPORT int RSA_private_key_to_bytes ( uint8_t **  out_bytes,
size_t *  out_len,
const RSA rsa 
)

Definition at line 234 of file rsa_asn1.c.

◆ RSA_public_decrypt()

OPENSSL_EXPORT int RSA_public_decrypt ( size_t  flen,
const uint8_t from,
uint8_t to,
RSA rsa,
int  padding 
)

Definition at line 354 of file rsa.c.

◆ RSA_public_encrypt()

OPENSSL_EXPORT int RSA_public_encrypt ( size_t  flen,
const uint8_t from,
uint8_t to,
RSA rsa,
int  padding 
)

Definition at line 291 of file rsa.c.

◆ RSA_public_key_from_bytes()

OPENSSL_EXPORT RSA* RSA_public_key_from_bytes ( const uint8_t in,
size_t  in_len 
)

Definition at line 114 of file rsa_asn1.c.

◆ RSA_public_key_to_bytes()

OPENSSL_EXPORT int RSA_public_key_to_bytes ( uint8_t **  out_bytes,
size_t *  out_len,
const RSA rsa 
)

Definition at line 138 of file rsa_asn1.c.

◆ RSA_set0_crt_params()

OPENSSL_EXPORT int RSA_set0_crt_params ( RSA rsa,
BIGNUM dmp1,
BIGNUM dmq1,
BIGNUM iqmp 
)

Definition at line 268 of file rsa.c.

◆ RSA_set0_factors()

OPENSSL_EXPORT int RSA_set0_factors ( RSA rsa,
BIGNUM p,
BIGNUM q 
)

Definition at line 250 of file rsa.c.

◆ RSA_set0_key()

OPENSSL_EXPORT int RSA_set0_key ( RSA rsa,
BIGNUM n,
BIGNUM e,
BIGNUM d 
)

Definition at line 228 of file rsa.c.

◆ RSA_set_ex_data()

OPENSSL_EXPORT int RSA_set_ex_data ( RSA rsa,
int  idx,
void *  arg 
)

Definition at line 391 of file rsa.c.

◆ RSA_sign()

OPENSSL_EXPORT int RSA_sign ( int  hash_nid,
const uint8_t digest,
unsigned  digest_len,
uint8_t out,
unsigned *  out_len,
RSA rsa 
)

Definition at line 526 of file rsa.c.

◆ RSA_sign_pss_mgf1()

OPENSSL_EXPORT int RSA_sign_pss_mgf1 ( RSA rsa,
size_t *  out_len,
uint8_t out,
size_t  max_out,
const uint8_t digest,
size_t  digest_len,
const EVP_MD md,
const EVP_MD mgf1_md,
int  salt_len 
)

Definition at line 557 of file rsa.c.

◆ RSA_sign_raw()

OPENSSL_EXPORT int RSA_sign_raw ( RSA rsa,
size_t *  out_len,
uint8_t out,
size_t  max_out,
const uint8_t in,
size_t  in_len,
int  padding 
)

Definition at line 306 of file rsa.c.

◆ RSA_size()

OPENSSL_EXPORT unsigned RSA_size ( const RSA rsa)

Definition at line 369 of file rsa.c.

◆ RSA_up_ref()

OPENSSL_EXPORT int RSA_up_ref ( RSA rsa)

Definition at line 163 of file rsa.c.

◆ RSA_verify()

OPENSSL_EXPORT int RSA_verify ( int  hash_nid,
const uint8_t digest,
size_t  digest_len,
const uint8_t sig,
size_t  sig_len,
RSA rsa 
)

Definition at line 580 of file rsa.c.

◆ RSA_verify_PKCS1_PSS()

OPENSSL_EXPORT int RSA_verify_PKCS1_PSS ( const RSA rsa,
const uint8_t mHash,
const EVP_MD Hash,
const uint8_t EM,
int  sLen 
)

Definition at line 93 of file rsa_decrepit.c.

◆ RSA_verify_PKCS1_PSS_mgf1()

OPENSSL_EXPORT int RSA_verify_PKCS1_PSS_mgf1 ( const RSA rsa,
const uint8_t mHash,
const EVP_MD Hash,
const EVP_MD mgf1Hash,
const uint8_t EM,
int  sLen 
)

Definition at line 486 of file padding.c.

◆ RSA_verify_pss_mgf1()

OPENSSL_EXPORT int RSA_verify_pss_mgf1 ( RSA rsa,
const uint8_t digest,
size_t  digest_len,
const EVP_MD md,
const EVP_MD mgf1_md,
int  salt_len,
const uint8_t sig,
size_t  sig_len 
)

Definition at line 633 of file rsa.c.

◆ RSA_verify_raw()

OPENSSL_EXPORT int RSA_verify_raw ( RSA rsa,
size_t *  out_len,
uint8_t out,
size_t  max_out,
const uint8_t in,
size_t  in_len,
int  padding 
)

Definition at line 596 of file rsa_impl.c.

◆ RSAPrivateKey_dup()

OPENSSL_EXPORT RSA* RSAPrivateKey_dup ( const RSA rsa)

Definition at line 315 of file rsa_asn1.c.

◆ RSAPublicKey_dup()

OPENSSL_EXPORT RSA* RSAPublicKey_dup ( const RSA rsa)

Definition at line 304 of file rsa_asn1.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:29