#include <openssl/asn1.h>
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/ossl_typ.h>
#include <openssl/bn.h>
Go to the source code of this file.
Classes | |
struct | rsa_meth_st |
struct | rsa_st |
struct | rsa_pss_params_st |
Typedefs | |
typedef RSAPrivateKey struct rsa_pss_params_st | RSA_PSS_PARAMS |
Functions | |
RSA * | RSA_new (void) |
RSA * | RSA_new_method (ENGINE *engine) |
int | RSA_size (const RSA *) |
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 bits, BIGNUM *e, BN_GENCB *cb) |
int | RSA_check_key (const RSA *) |
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_METHOD * | RSA_get_default_method (void) |
const RSA_METHOD * | RSA_get_method (const RSA *rsa) |
int | RSA_set_method (RSA *rsa, const RSA_METHOD *meth) |
int | RSA_memory_lock (RSA *r) |
const RSA_METHOD * | RSA_PKCS1_SSLeay (void) |
const RSA_METHOD * | RSA_null_method (void) |
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 | i2d_RSA_NET (const RSA *a, unsigned char **pp, int(*cb)(char *buf, int len, const char *prompt, int verify), int sgckey) |
RSA * | d2i_RSA_NET (RSA **a, const unsigned char **pp, long length, int(*cb)(char *buf, int len, const char *prompt, int verify), int sgckey) |
int | i2d_Netscape_RSA (const RSA *a, unsigned char **pp, int(*cb)(char *buf, int len, const char *prompt, int verify)) |
RSA * | d2i_Netscape_RSA (RSA **a, const unsigned char **pp, long length, int(*cb)(char *buf, int len, const char *prompt, int verify)) |
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_BLINDING * | RSA_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_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_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) |
int | RSA_set_ex_data (RSA *r, int idx, void *arg) |
void * | RSA_get_ex_data (const RSA *r, int idx) |
RSA * | RSAPublicKey_dup (RSA *rsa) |
RSA * | RSAPrivateKey_dup (RSA *rsa) |
void | ERR_load_RSA_strings (void) |
#define EVP_PKEY_CTRL_GET_RSA_MGF1_MD (EVP_PKEY_ALG_CTRL + 8) |
#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_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_RSA_PADDING (EVP_PKEY_ALG_CTRL + 1) |
#define EVP_PKEY_CTRL_RSA_PSS_SALTLEN (EVP_PKEY_ALG_CTRL + 2) |
#define EVP_PKEY_CTX_get_rsa_mgf1_md | ( | ctx, | |
pmd | |||
) |
#define EVP_PKEY_CTX_get_rsa_padding | ( | ctx, | |
ppad | |||
) |
#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_mgf1_md | ( | ctx, | |
md | |||
) |
#define EVP_PKEY_CTX_set_rsa_padding | ( | ctx, | |
pad | |||
) |
#define EVP_PKEY_CTX_set_rsa_pss_saltlen | ( | ctx, | |
len | |||
) |
#define OPENSSL_RSA_MAX_PUBEXP_BITS 64 /* exponent limit enforced for "large" modulus only */ |
#define RSA_FLAG_NO_BLINDING |
#define RSA_FLAG_NO_CONSTTIME |
#define RSA_FLAG_NO_EXP_CONSTTIME RSA_FLAG_NO_CONSTTIME /* deprecated name for the flag*/ |
#define RSA_get_app_data | ( | s | ) | RSA_get_ex_data(s,0) |
#define RSA_METHOD_FLAG_NO_CHECK 0x0001 /* don't check pub/private match */ |
#define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116 |
#define RSA_set_app_data | ( | s, | |
arg | |||
) | RSA_set_ex_data(s,0,arg) |
typedef RSAPrivateKey struct rsa_pss_params_st RSA_PSS_PARAMS |
DECLARE_ASN1_ENCODE_FUNCTIONS_const | ( | RSA | , |
RSAPublicKey | |||
) |
int PKCS1_MGF1 | ( | unsigned char * | mask, |
long | len, | ||
const unsigned char * | seed, | ||
long | seedlen, | ||
const EVP_MD * | dgst | ||
) |
Definition at line 186 of file rsa_oaep.c.
Definition at line 136 of file rsa_crpt.c.
Definition at line 147 of file rsa_crpt.c.
int RSA_flags | ( | const RSA * | r | ) |
Definition at line 131 of file rsa_crpt.c.
RSA* RSA_generate_key | ( | int | bits, |
unsigned long | e, | ||
void(*)(int, int, void *) | callback, | ||
void * | cb_arg | ||
) |
Definition at line 71 of file rsa_depr.c.
const RSA_METHOD* RSA_get_default_method | ( | void | ) |
int RSA_get_ex_new_index | ( | long | argl, |
void * | argp, | ||
CRYPTO_EX_new * | new_func, | ||
CRYPTO_EX_dup * | dup_func, | ||
CRYPTO_EX_free * | free_func | ||
) |
const RSA_METHOD* RSA_get_method | ( | const RSA * | rsa | ) |
const RSA_METHOD* RSA_null_method | ( | void | ) |
Definition at line 102 of file rsa_null.c.
int RSA_padding_add_none | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl | ||
) |
Definition at line 65 of file rsa_none.c.
int RSA_padding_add_PKCS1_OAEP | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl, | ||
const unsigned char * | p, | ||
int | pl | ||
) |
Definition at line 34 of file rsa_oaep.c.
int RSA_padding_add_PKCS1_type_1 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl | ||
) |
int RSA_padding_add_PKCS1_type_2 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl | ||
) |
int RSA_padding_add_SSLv23 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl | ||
) |
int RSA_padding_add_X931 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl | ||
) |
Definition at line 66 of file rsa_x931.c.
int RSA_padding_check_none | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl, | ||
int | rsa_len | ||
) |
Definition at line 84 of file rsa_none.c.
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 | ||
) |
Definition at line 94 of file rsa_oaep.c.
int RSA_padding_check_PKCS1_type_1 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl, | ||
int | rsa_len | ||
) |
int RSA_padding_check_PKCS1_type_2 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl, | ||
int | rsa_len | ||
) |
int RSA_padding_check_SSLv23 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl, | ||
int | rsa_len | ||
) |
int RSA_padding_check_X931 | ( | unsigned char * | to, |
int | tlen, | ||
const unsigned char * | f, | ||
int | fl, | ||
int | rsa_len | ||
) |
Definition at line 105 of file rsa_x931.c.
const RSA_METHOD* RSA_PKCS1_SSLeay | ( | void | ) |
int RSA_private_decrypt | ( | int | flen, |
const unsigned char * | from, | ||
unsigned char * | to, | ||
RSA * | rsa, | ||
int | padding | ||
) |
Definition at line 103 of file rsa_crpt.c.
int RSA_private_encrypt | ( | int | flen, |
const unsigned char * | from, | ||
unsigned char * | to, | ||
RSA * | rsa, | ||
int | padding | ||
) |
Definition at line 89 of file rsa_crpt.c.
int RSA_public_decrypt | ( | int | flen, |
const unsigned char * | from, | ||
unsigned char * | to, | ||
RSA * | rsa, | ||
int | padding | ||
) |
Definition at line 117 of file rsa_crpt.c.
int RSA_public_encrypt | ( | int | flen, |
const unsigned char * | from, | ||
unsigned char * | to, | ||
RSA * | rsa, | ||
int | padding | ||
) |
Definition at line 75 of file rsa_crpt.c.
void RSA_set_default_method | ( | const RSA_METHOD * | meth | ) |
int RSA_set_method | ( | RSA * | rsa, |
const RSA_METHOD * | meth | ||
) |
BN_BLINDING* RSA_setup_blinding | ( | RSA * | rsa, |
BN_CTX * | ctx | ||
) |
Definition at line 190 of file rsa_crpt.c.
int RSA_sign | ( | int | type, |
const unsigned char * | m, | ||
unsigned int | m_length, | ||
unsigned char * | sigret, | ||
unsigned int * | siglen, | ||
RSA * | rsa | ||
) |
Definition at line 70 of file rsa_sign.c.
int RSA_sign_ASN1_OCTET_STRING | ( | int | type, |
const unsigned char * | m, | ||
unsigned int | m_length, | ||
unsigned char * | sigret, | ||
unsigned int * | siglen, | ||
RSA * | rsa | ||
) |
Definition at line 66 of file rsa_saos.c.
int RSA_size | ( | const RSA * | ) |
Definition at line 70 of file rsa_crpt.c.
int RSA_verify | ( | int | type, |
const unsigned char * | m, | ||
unsigned int | m_length, | ||
const unsigned char * | sigbuf, | ||
unsigned int | siglen, | ||
RSA * | rsa | ||
) |
Definition at line 306 of file rsa_sign.c.
int RSA_verify_ASN1_OCTET_STRING | ( | int | type, |
const unsigned char * | m, | ||
unsigned int | m_length, | ||
unsigned char * | sigbuf, | ||
unsigned int | siglen, | ||
RSA * | rsa | ||
) |
Definition at line 104 of file rsa_saos.c.
int RSA_X931_hash_id | ( | int | nid | ) |
Definition at line 158 of file rsa_x931.c.