59#ifndef HEADER_RSAREF_H
60#define HEADER_RSAREF_H
73#define RSAref_MAX_BITS 1024
75#define RSAref_MIN_BITS 508
76#define RSAref_MAX_LEN ((RSAref_MAX_BITS+7)/8)
77#define RSAref_MAX_PBITS (RSAref_MAX_BITS+1)/2
78#define RSAref_MAX_PLEN ((RSAref_MAX_PBITS+7)/8)
106#define RE_CONTENT_ENCODING 0x0400
107#define RE_DATA 0x0401
108#define RE_DIGEST_ALGORITHM 0x0402
109#define RE_ENCODING 0x0403
111#define RE_KEY_ENCODING 0x0405
113#define RE_MODULUS_LEN 0x0407
114#define RE_NEED_RANDOM 0x0408
115#define RE_PRIVATE_KEY 0x0409
116#define RE_PUBLIC_KEY 0x040a
117#define RE_SIGNATURE 0x040b
118#define RE_SIGNATURE_ENCODING 0x040c
119#define RE_ENCRYPTION_ALGORITHM 0x040d
146#define RSAREF_F_BN_REF_MOD_EXP 100
147#define RSAREF_F_RSAREF_BN2BIN 101
148#define RSAREF_F_RSA_BN2BIN 102
149#define RSAREF_F_RSA_PRIVATE_DECRYPT 103
150#define RSAREF_F_RSA_PRIVATE_ENCRYPT 104
151#define RSAREF_F_RSA_PUBLIC_DECRYPT 105
152#define RSAREF_F_RSA_PUBLIC_ENCRYPT 106
153#define RSAREF_F_RSA_REF_BN2BIN 107
154#define RSAREF_F_RSA_REF_MOD_EXP 108
155#define RSAREF_F_RSA_REF_PRIVATE_DECRYPT 109
156#define RSAREF_F_RSA_REF_PRIVATE_ENCRYPT 110
157#define RSAREF_F_RSA_REF_PUBLIC_DECRYPT 111
158#define RSAREF_F_RSA_REF_PUBLIC_ENCRYPT 112
161#define RSAREF_R_CONTENT_ENCODING 0x0400
162#define RSAREF_R_DATA 0x0401
163#define RSAREF_R_DIGEST_ALGORITHM 0x0402
164#define RSAREF_R_ENCODING 0x0403
165#define RSAREF_R_ENCRYPTION_ALGORITHM 0x040d
166#define RSAREF_R_KEY 0x0404
167#define RSAREF_R_KEY_ENCODING 0x0405
168#define RSAREF_R_LEN 0x0406
169#define RSAREF_R_MODULUS_LEN 0x0407
170#define RSAREF_R_NEED_RANDOM 0x0408
171#define RSAREF_R_PRIVATE_KEY 0x0409
172#define RSAREF_R_PUBLIC_KEY 0x040a
173#define RSAREF_R_SIGNATURE 0x040b
174#define RSAREF_R_SIGNATURE_ENCODING 0x040c
unsigned char e[((1024+7)/8)]
int RSAPrivateDecrypt(unsigned char *to, int *outlen, unsigned char *from, int len, RSArefPrivateKey *RSAkey)
struct RSArefPrivateKey_st RSArefPrivateKey
unsigned char m[((1024+7)/8)]
unsigned char m[((1024+7)/8)]
unsigned char coef[(((1024+1)/2+7)/8)]
int RSAPublicDecrypt(unsigned char *to, int *outlen, unsigned char *from, int len, RSArefPublicKey *RSAkey)
struct RSARandomState_st RSARandomState
struct RSArefPublicKey_st RSArefPublicKey
int RSAPrivateEncrypt(unsigned char *to, int *outlen, unsigned char *from, int len, RSArefPrivateKey *RSAkey)
int R_GetRandomBytesNeeded(unsigned int *, RSARandomState *rnd)
unsigned char d[((1024+7)/8)]
unsigned char pexp[2][(((1024+1)/2+7)/8)]
int RSAPublicEncrypt(unsigned char *to, int *outlen, unsigned char *from, int len, RSArefPublicKey *RSAkey, RSARandomState *rnd)
unsigned char prime[2][(((1024+1)/2+7)/8)]
int R_RandomUpdate(RSARandomState *rnd, unsigned char *data, unsigned int n)
void ERR_load_RSAREF_strings(void)
int R_RandomInit(RSARandomState *rnd)
RSA_METHOD * RSA_PKCS1_RSAref(void)
int R_RandomFinal(RSARandomState *rnd)
unsigned char e[((1024+7)/8)]