SWILIB API (NSG)    
Loading...
Searching...
No Matches
rsa.h File Reference
#include "bn.h"
#include "crypto.h"

Go to the source code of this file.

Data Structures

struct  rsa_meth_st
 
struct  rsa_st
 

Macros

#define RSA_3   0x3L
 
#define RSA_F4   0x10001L
 
#define RSA_METHOD_FLAG_NO_CHECK   0x01 /* don't check pub/private match */
 
#define RSA_FLAG_CACHE_PUBLIC   0x02
 
#define RSA_FLAG_CACHE_PRIVATE   0x04
 
#define RSA_FLAG_BLINDING   0x08
 
#define RSA_FLAG_THREAD_SAFE   0x10
 
#define RSA_FLAG_EXT_PKEY   0x20
 
#define RSA_FLAG_SIGN_VER   0x40
 
#define RSA_PKCS1_PADDING   1
 
#define RSA_SSLV23_PADDING   2
 
#define RSA_NO_PADDING   3
 
#define RSA_PKCS1_OAEP_PADDING   4
 
#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_F_MEMORY_LOCK   100
 
#define RSA_F_RSA_CHECK_KEY   123
 
#define RSA_F_RSA_EAY_PRIVATE_DECRYPT   101
 
#define RSA_F_RSA_EAY_PRIVATE_ENCRYPT   102
 
#define RSA_F_RSA_EAY_PUBLIC_DECRYPT   103
 
#define RSA_F_RSA_EAY_PUBLIC_ENCRYPT   104
 
#define RSA_F_RSA_GENERATE_KEY   105
 
#define RSA_F_RSA_NEW_METHOD   106
 
#define RSA_F_RSA_NULL   124
 
#define RSA_F_RSA_PADDING_ADD_NONE   107
 
#define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP   121
 
#define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1   108
 
#define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2   109
 
#define RSA_F_RSA_PADDING_ADD_SSLV23   110
 
#define RSA_F_RSA_PADDING_CHECK_NONE   111
 
#define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP   122
 
#define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1   112
 
#define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2   113
 
#define RSA_F_RSA_PADDING_CHECK_SSLV23   114
 
#define RSA_F_RSA_PRINT   115
 
#define RSA_F_RSA_PRINT_FP   116
 
#define RSA_F_RSA_SIGN   117
 
#define RSA_F_RSA_SIGN_ASN1_OCTET_STRING   118
 
#define RSA_F_RSA_VERIFY   119
 
#define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING   120
 
#define RSA_R_ALGORITHM_MISMATCH   100
 
#define RSA_R_BAD_E_VALUE   101
 
#define RSA_R_BAD_FIXED_HEADER_DECRYPT   102
 
#define RSA_R_BAD_PAD_BYTE_COUNT   103
 
#define RSA_R_BAD_SIGNATURE   104
 
#define RSA_R_BLOCK_TYPE_IS_NOT_01   106
 
#define RSA_R_BLOCK_TYPE_IS_NOT_02   107
 
#define RSA_R_DATA_GREATER_THAN_MOD_LEN   108
 
#define RSA_R_DATA_TOO_LARGE   109
 
#define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE   110
 
#define RSA_R_DATA_TOO_SMALL   111
 
#define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE   122
 
#define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY   112
 
#define RSA_R_DMP1_NOT_CONGRUENT_TO_D   124
 
#define RSA_R_DMQ1_NOT_CONGRUENT_TO_D   125
 
#define RSA_R_D_E_NOT_CONGRUENT_TO_1   123
 
#define RSA_R_INVALID_MESSAGE_LENGTH   131
 
#define RSA_R_IQMP_NOT_INVERSE_OF_Q   126
 
#define RSA_R_KEY_SIZE_TOO_SMALL   120
 
#define RSA_R_NULL_BEFORE_BLOCK_MISSING   113
 
#define RSA_R_N_DOES_NOT_EQUAL_P_Q   127
 
#define RSA_R_OAEP_DECODING_ERROR   121
 
#define RSA_R_PADDING_CHECK_FAILED   114
 
#define RSA_R_P_NOT_PRIME   128
 
#define RSA_R_Q_NOT_PRIME   129
 
#define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED   130
 
#define RSA_R_SSLV3_ROLLBACK_ATTACK   115
 
#define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD   116
 
#define RSA_R_UNKNOWN_ALGORITHM_TYPE   117
 
#define RSA_R_UNKNOWN_PADDING_TYPE   118
 
#define RSA_R_WRONG_SIGNATURE_LENGTH   119
 

Typedefs

typedef struct rsa_st RSA
 
typedef struct rsa_meth_st RSA_METHOD
 

Functions

RSA * RSA_new (void)
 
int RSA_size (RSA *)
 
RSA * RSA_generate_key (int bits, unsigned long e, void(*callback)(int, int, void *), void *cb_arg)
 
int RSA_check_key (RSA *)
 
int RSA_public_encrypt (int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_private_encrypt (int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_public_decrypt (int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_private_decrypt (int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding)
 
int RSA_flags (RSA *r)
 
void RSA_set_default_method (RSA_METHOD *meth)
 
RSA_METHOD * RSA_get_default_method (void)
 
RSA_METHOD * RSA_get_method (RSA *rsa)
 
RSA_METHOD * RSA_set_method (RSA *rsa, RSA_METHOD *meth)
 
int RSA_memory_lock (RSA *r)
 
RSA_METHOD * RSA_PKCS1_RSAref (void)
 
RSA_METHOD * RSA_PKCS1_SSLeay (void)
 
RSA_METHOD * RSA_null_method (void)
 
void ERR_load_RSA_strings (void)
 
RSA * d2i_RSAPublicKey (RSA **a, unsigned char **pp, long length)
 
int i2d_RSAPublicKey (RSA *a, unsigned char **pp)
 
RSA * d2i_RSAPrivateKey (RSA **a, unsigned char **pp, long length)
 
int i2d_RSAPrivateKey (RSA *a, unsigned char **pp)
 
int i2d_Netscape_RSA (RSA *a, unsigned char **pp, int(*cb)())
 
RSA * d2i_Netscape_RSA (RSA **a, unsigned char **pp, long length, int(*cb)())
 
RSA * d2i_Netscape_RSA_2 (RSA **a, unsigned char **pp, long length, int(*cb)())
 
int RSA_verify (int type, unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa)
 
int RSA_sign_ASN1_OCTET_STRING (int type, unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa)
 
int RSA_verify_ASN1_OCTET_STRING (int type, unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa)
 
int RSA_blinding_on (RSA *rsa, BN_CTX *ctx)
 
void RSA_blinding_off (RSA *rsa)
 
int RSA_padding_add_PKCS1_type_1 (unsigned char *to, int tlen, unsigned char *f, int fl)
 
int RSA_padding_check_PKCS1_type_1 (unsigned char *to, int tlen, unsigned char *f, int fl, int rsa_len)
 
int RSA_padding_add_PKCS1_type_2 (unsigned char *to, int tlen, unsigned char *f, int fl)
 
int RSA_padding_check_PKCS1_type_2 (unsigned char *to, int tlen, unsigned char *f, int fl, int rsa_len)
 
int RSA_padding_add_PKCS1_OAEP (unsigned char *to, int tlen, unsigned char *f, int fl, unsigned char *p, int pl)
 
int RSA_padding_check_PKCS1_OAEP (unsigned char *to, int tlen, unsigned char *f, int fl, int rsa_len, unsigned char *p, int pl)
 
int RSA_padding_add_SSLv23 (unsigned char *to, int tlen, unsigned char *f, int fl)
 
int RSA_padding_check_SSLv23 (unsigned char *to, int tlen, unsigned char *f, int fl, int rsa_len)
 
int RSA_padding_add_none (unsigned char *to, int tlen, unsigned char *f, int fl)
 
int RSA_padding_check_none (unsigned char *to, int tlen, unsigned char *f, int fl, int rsa_len)
 
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 (RSA *r, int idx)
 

Data Structure Documentation

◆ rsa_meth_st

struct rsa_meth_st

◆ rsa_st

struct rsa_st

Macro Definition Documentation

◆ RSA_3

#define RSA_3   0x3L

Definition at line 139 of file rsa.h.

◆ RSA_F4

#define RSA_F4   0x10001L

Definition at line 140 of file rsa.h.

◆ RSA_METHOD_FLAG_NO_CHECK

#define RSA_METHOD_FLAG_NO_CHECK   0x01 /* don't check pub/private match */

Definition at line 142 of file rsa.h.

◆ RSA_FLAG_CACHE_PUBLIC

#define RSA_FLAG_CACHE_PUBLIC   0x02

Definition at line 144 of file rsa.h.

◆ RSA_FLAG_CACHE_PRIVATE

#define RSA_FLAG_CACHE_PRIVATE   0x04

Definition at line 145 of file rsa.h.

◆ RSA_FLAG_BLINDING

#define RSA_FLAG_BLINDING   0x08

Definition at line 146 of file rsa.h.

◆ RSA_FLAG_THREAD_SAFE

#define RSA_FLAG_THREAD_SAFE   0x10

Definition at line 147 of file rsa.h.

◆ RSA_FLAG_EXT_PKEY

#define RSA_FLAG_EXT_PKEY   0x20

Definition at line 153 of file rsa.h.

◆ RSA_FLAG_SIGN_VER

#define RSA_FLAG_SIGN_VER   0x40

Definition at line 157 of file rsa.h.

◆ RSA_PKCS1_PADDING

#define RSA_PKCS1_PADDING   1

Definition at line 159 of file rsa.h.

◆ RSA_SSLV23_PADDING

#define RSA_SSLV23_PADDING   2

Definition at line 160 of file rsa.h.

◆ RSA_NO_PADDING

#define RSA_NO_PADDING   3

Definition at line 161 of file rsa.h.

◆ RSA_PKCS1_OAEP_PADDING

#define RSA_PKCS1_OAEP_PADDING   4

Definition at line 162 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 164 of file rsa.h.

◆ RSA_get_app_data

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

Definition at line 165 of file rsa.h.

◆ RSA_F_MEMORY_LOCK

#define RSA_F_MEMORY_LOCK   100

Definition at line 275 of file rsa.h.

◆ RSA_F_RSA_CHECK_KEY

#define RSA_F_RSA_CHECK_KEY   123

Definition at line 276 of file rsa.h.

◆ RSA_F_RSA_EAY_PRIVATE_DECRYPT

#define RSA_F_RSA_EAY_PRIVATE_DECRYPT   101

Definition at line 277 of file rsa.h.

◆ RSA_F_RSA_EAY_PRIVATE_ENCRYPT

#define RSA_F_RSA_EAY_PRIVATE_ENCRYPT   102

Definition at line 278 of file rsa.h.

◆ RSA_F_RSA_EAY_PUBLIC_DECRYPT

#define RSA_F_RSA_EAY_PUBLIC_DECRYPT   103

Definition at line 279 of file rsa.h.

◆ RSA_F_RSA_EAY_PUBLIC_ENCRYPT

#define RSA_F_RSA_EAY_PUBLIC_ENCRYPT   104

Definition at line 280 of file rsa.h.

◆ RSA_F_RSA_GENERATE_KEY

#define RSA_F_RSA_GENERATE_KEY   105

Definition at line 281 of file rsa.h.

◆ RSA_F_RSA_NEW_METHOD

#define RSA_F_RSA_NEW_METHOD   106

Definition at line 282 of file rsa.h.

◆ RSA_F_RSA_NULL

#define RSA_F_RSA_NULL   124

Definition at line 283 of file rsa.h.

◆ RSA_F_RSA_PADDING_ADD_NONE

#define RSA_F_RSA_PADDING_ADD_NONE   107

Definition at line 284 of file rsa.h.

◆ RSA_F_RSA_PADDING_ADD_PKCS1_OAEP

#define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP   121

Definition at line 285 of file rsa.h.

◆ RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1

#define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1   108

Definition at line 286 of file rsa.h.

◆ RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2

#define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2   109

Definition at line 287 of file rsa.h.

◆ RSA_F_RSA_PADDING_ADD_SSLV23

#define RSA_F_RSA_PADDING_ADD_SSLV23   110

Definition at line 288 of file rsa.h.

◆ RSA_F_RSA_PADDING_CHECK_NONE

#define RSA_F_RSA_PADDING_CHECK_NONE   111

Definition at line 289 of file rsa.h.

◆ RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP

#define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP   122

Definition at line 290 of file rsa.h.

◆ RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1

#define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1   112

Definition at line 291 of file rsa.h.

◆ RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2

#define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2   113

Definition at line 292 of file rsa.h.

◆ RSA_F_RSA_PADDING_CHECK_SSLV23

#define RSA_F_RSA_PADDING_CHECK_SSLV23   114

Definition at line 293 of file rsa.h.

◆ RSA_F_RSA_PRINT

#define RSA_F_RSA_PRINT   115

Definition at line 294 of file rsa.h.

◆ RSA_F_RSA_PRINT_FP

#define RSA_F_RSA_PRINT_FP   116

Definition at line 295 of file rsa.h.

◆ RSA_F_RSA_SIGN

#define RSA_F_RSA_SIGN   117

Definition at line 296 of file rsa.h.

◆ RSA_F_RSA_SIGN_ASN1_OCTET_STRING

#define RSA_F_RSA_SIGN_ASN1_OCTET_STRING   118

Definition at line 297 of file rsa.h.

◆ RSA_F_RSA_VERIFY

#define RSA_F_RSA_VERIFY   119

Definition at line 298 of file rsa.h.

◆ RSA_F_RSA_VERIFY_ASN1_OCTET_STRING

#define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING   120

Definition at line 299 of file rsa.h.

◆ RSA_R_ALGORITHM_MISMATCH

#define RSA_R_ALGORITHM_MISMATCH   100

Definition at line 302 of file rsa.h.

◆ RSA_R_BAD_E_VALUE

#define RSA_R_BAD_E_VALUE   101

Definition at line 303 of file rsa.h.

◆ RSA_R_BAD_FIXED_HEADER_DECRYPT

#define RSA_R_BAD_FIXED_HEADER_DECRYPT   102

Definition at line 304 of file rsa.h.

◆ RSA_R_BAD_PAD_BYTE_COUNT

#define RSA_R_BAD_PAD_BYTE_COUNT   103

Definition at line 305 of file rsa.h.

◆ RSA_R_BAD_SIGNATURE

#define RSA_R_BAD_SIGNATURE   104

Definition at line 306 of file rsa.h.

◆ RSA_R_BLOCK_TYPE_IS_NOT_01

#define RSA_R_BLOCK_TYPE_IS_NOT_01   106

Definition at line 307 of file rsa.h.

◆ RSA_R_BLOCK_TYPE_IS_NOT_02

#define RSA_R_BLOCK_TYPE_IS_NOT_02   107

Definition at line 308 of file rsa.h.

◆ RSA_R_DATA_GREATER_THAN_MOD_LEN

#define RSA_R_DATA_GREATER_THAN_MOD_LEN   108

Definition at line 309 of file rsa.h.

◆ RSA_R_DATA_TOO_LARGE

#define RSA_R_DATA_TOO_LARGE   109

Definition at line 310 of file rsa.h.

◆ RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE

#define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE   110

Definition at line 311 of file rsa.h.

◆ RSA_R_DATA_TOO_SMALL

#define RSA_R_DATA_TOO_SMALL   111

Definition at line 312 of file rsa.h.

◆ RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE

#define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE   122

Definition at line 313 of file rsa.h.

◆ RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY

#define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY   112

Definition at line 314 of file rsa.h.

◆ RSA_R_DMP1_NOT_CONGRUENT_TO_D

#define RSA_R_DMP1_NOT_CONGRUENT_TO_D   124

Definition at line 315 of file rsa.h.

◆ RSA_R_DMQ1_NOT_CONGRUENT_TO_D

#define RSA_R_DMQ1_NOT_CONGRUENT_TO_D   125

Definition at line 316 of file rsa.h.

◆ RSA_R_D_E_NOT_CONGRUENT_TO_1

#define RSA_R_D_E_NOT_CONGRUENT_TO_1   123

Definition at line 317 of file rsa.h.

◆ RSA_R_INVALID_MESSAGE_LENGTH

#define RSA_R_INVALID_MESSAGE_LENGTH   131

Definition at line 318 of file rsa.h.

◆ RSA_R_IQMP_NOT_INVERSE_OF_Q

#define RSA_R_IQMP_NOT_INVERSE_OF_Q   126

Definition at line 319 of file rsa.h.

◆ RSA_R_KEY_SIZE_TOO_SMALL

#define RSA_R_KEY_SIZE_TOO_SMALL   120

Definition at line 320 of file rsa.h.

◆ RSA_R_NULL_BEFORE_BLOCK_MISSING

#define RSA_R_NULL_BEFORE_BLOCK_MISSING   113

Definition at line 321 of file rsa.h.

◆ RSA_R_N_DOES_NOT_EQUAL_P_Q

#define RSA_R_N_DOES_NOT_EQUAL_P_Q   127

Definition at line 322 of file rsa.h.

◆ RSA_R_OAEP_DECODING_ERROR

#define RSA_R_OAEP_DECODING_ERROR   121

Definition at line 323 of file rsa.h.

◆ RSA_R_PADDING_CHECK_FAILED

#define RSA_R_PADDING_CHECK_FAILED   114

Definition at line 324 of file rsa.h.

◆ RSA_R_P_NOT_PRIME

#define RSA_R_P_NOT_PRIME   128

Definition at line 325 of file rsa.h.

◆ RSA_R_Q_NOT_PRIME

#define RSA_R_Q_NOT_PRIME   129

Definition at line 326 of file rsa.h.

◆ RSA_R_RSA_OPERATIONS_NOT_SUPPORTED

#define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED   130

Definition at line 327 of file rsa.h.

◆ RSA_R_SSLV3_ROLLBACK_ATTACK

#define RSA_R_SSLV3_ROLLBACK_ATTACK   115

Definition at line 328 of file rsa.h.

◆ RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD

#define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD   116

Definition at line 329 of file rsa.h.

◆ RSA_R_UNKNOWN_ALGORITHM_TYPE

#define RSA_R_UNKNOWN_ALGORITHM_TYPE   117

Definition at line 330 of file rsa.h.

◆ RSA_R_UNKNOWN_PADDING_TYPE

#define RSA_R_UNKNOWN_PADDING_TYPE   118

Definition at line 331 of file rsa.h.

◆ RSA_R_WRONG_SIGNATURE_LENGTH

#define RSA_R_WRONG_SIGNATURE_LENGTH   119

Definition at line 332 of file rsa.h.

Typedef Documentation

◆ RSA

typedef struct rsa_st RSA

Definition at line 73 of file rsa.h.

◆ RSA_METHOD

typedef struct rsa_meth_st RSA_METHOD

Function Documentation

◆ RSA_new()

RSA * RSA_new ( void )

◆ RSA_size()

int RSA_size ( RSA * )

◆ RSA_generate_key()

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

◆ RSA_check_key()

int RSA_check_key ( RSA * )

◆ RSA_public_encrypt()

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

◆ RSA_private_encrypt()

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

◆ RSA_public_decrypt()

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

◆ RSA_private_decrypt()

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

◆ RSA_flags()

int RSA_flags ( RSA * r)

◆ RSA_set_default_method()

void RSA_set_default_method ( RSA_METHOD * meth)

◆ RSA_get_default_method()

RSA_METHOD * RSA_get_default_method ( void )

◆ RSA_get_method()

RSA_METHOD * RSA_get_method ( RSA * rsa)

◆ RSA_set_method()

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

◆ RSA_memory_lock()

int RSA_memory_lock ( RSA * r)

◆ RSA_PKCS1_RSAref()

RSA_METHOD * RSA_PKCS1_RSAref ( void )

◆ RSA_PKCS1_SSLeay()

RSA_METHOD * RSA_PKCS1_SSLeay ( void )

◆ RSA_null_method()

RSA_METHOD * RSA_null_method ( void )

◆ ERR_load_RSA_strings()

void ERR_load_RSA_strings ( void )

◆ d2i_RSAPublicKey()

RSA * d2i_RSAPublicKey ( RSA ** a,
unsigned char ** pp,
long length )

◆ i2d_RSAPublicKey()

int i2d_RSAPublicKey ( RSA * a,
unsigned char ** pp )

◆ d2i_RSAPrivateKey()

RSA * d2i_RSAPrivateKey ( RSA ** a,
unsigned char ** pp,
long length )

◆ i2d_RSAPrivateKey()

int i2d_RSAPrivateKey ( RSA * a,
unsigned char ** pp )

◆ i2d_Netscape_RSA()

int i2d_Netscape_RSA ( RSA * a,
unsigned char ** pp,
int(* cb )() )

◆ d2i_Netscape_RSA()

RSA * d2i_Netscape_RSA ( RSA ** a,
unsigned char ** pp,
long length,
int(* cb )() )

◆ d2i_Netscape_RSA_2()

RSA * d2i_Netscape_RSA_2 ( RSA ** a,
unsigned char ** pp,
long length,
int(* cb )() )

◆ RSA_verify()

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

◆ RSA_sign_ASN1_OCTET_STRING()

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

◆ RSA_verify_ASN1_OCTET_STRING()

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

◆ RSA_blinding_on()

int RSA_blinding_on ( RSA * rsa,
BN_CTX * ctx )

◆ RSA_blinding_off()

void RSA_blinding_off ( RSA * rsa)

◆ RSA_padding_add_PKCS1_type_1()

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

◆ RSA_padding_check_PKCS1_type_1()

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

◆ RSA_padding_add_PKCS1_type_2()

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

◆ RSA_padding_check_PKCS1_type_2()

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

◆ RSA_padding_add_PKCS1_OAEP()

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

◆ RSA_padding_check_PKCS1_OAEP()

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

◆ RSA_padding_add_SSLv23()

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

◆ RSA_padding_check_SSLv23()

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

◆ RSA_padding_add_none()

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

◆ RSA_padding_check_none()

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

◆ RSA_get_ex_new_index()

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 )

◆ RSA_set_ex_data()

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

◆ RSA_get_ex_data()

void * RSA_get_ex_data ( RSA * r,
int idx )