Searched refs:rsa (Results 1 - 25 of 316) sorted by relevance

1234567891011>>

/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/openssl-0.9.8e/crypto/rsa/
H A Drsa_gen.c1 /* crypto/rsa/rsa_gen.c */
69 #include <openssl/rsa.h>
71 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb);
78 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) argument
80 if(rsa->meth->rsa_keygen)
81 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb);
82 return rsa_builtin_keygen(rsa, bits, e_value, cb);
85 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) argument
104 if(!rsa
[all...]
H A Drsa_null.c62 #include <openssl/rsa.h>
73 unsigned char *to, RSA *rsa,int padding);
75 unsigned char *to, RSA *rsa,int padding);
77 unsigned char *to, RSA *rsa,int padding);
79 unsigned char *to, RSA *rsa,int padding);
81 static int RSA_null_mod_exp(const BIGNUM *r0, const BIGNUM *i, RSA *rsa);
83 static int RSA_null_init(RSA *rsa);
84 static int RSA_null_finish(RSA *rsa);
108 unsigned char *to, RSA *rsa, int padding)
115 unsigned char *to, RSA *rsa, in
107 RSA_null_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
114 RSA_null_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
121 RSA_null_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
128 RSA_null_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
143 RSA_null_init(RSA *rsa) argument
148 RSA_null_finish(RSA *rsa) argument
[all...]
H A Drsa_eay.c1 /* crypto/rsa/rsa_eay.c */
115 #include <openssl/rsa.h>
121 unsigned char *to, RSA *rsa,int padding);
123 unsigned char *to, RSA *rsa,int padding);
125 unsigned char *to, RSA *rsa,int padding);
127 unsigned char *to, RSA *rsa,int padding);
128 static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);
129 static int RSA_eay_init(RSA *rsa);
130 static int RSA_eay_finish(RSA *rsa);
154 * MONT_HELPER(rsa, bn_ct
163 RSA_eay_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
263 rsa_get_blinding(RSA *rsa, int *local, BN_CTX *ctx) argument
354 RSA_eay_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
484 RSA_eay_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
613 RSA_eay_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
715 RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) argument
810 RSA_eay_init(RSA *rsa) argument
816 RSA_eay_finish(RSA *rsa) argument
[all...]
H A Drsa_depr.c1 /* crypto/rsa/rsa_depr.c */
63 #include <openssl/rsa.h>
76 RSA *rsa = RSA_new(); local
79 if(!rsa || !e) goto err;
92 if(RSA_generate_key_ex(rsa, bits, e, &cb)) {
94 return rsa;
98 if(rsa) RSA_free(rsa);
H A Drsa_lib.c1 /* crypto/rsa/rsa_lib.c */
64 #include <openssl/rsa.h>
104 const RSA_METHOD *RSA_get_method(const RSA *rsa) argument
106 return rsa->meth;
109 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth) argument
114 mtmp = rsa->meth;
115 if (mtmp->finish) mtmp->finish(rsa);
117 if (rsa->engine)
119 ENGINE_finish(rsa->engine);
120 rsa
279 RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
285 RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
291 RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
297 RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
308 RSA_blinding_off(RSA *rsa) argument
319 RSA_blinding_on(RSA *rsa, BN_CTX *ctx) argument
362 RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) argument
[all...]
H A Drsa_sign.c1 /* crypto/rsa/rsa_sign.c */
62 #include <openssl/rsa.h>
70 unsigned char *sigret, unsigned int *siglen, RSA *rsa)
79 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign)
81 return rsa->meth->rsa_sign(type, m, m_len,
82 sigret, siglen, rsa);
115 j=RSA_size(rsa);
132 i=RSA_private_encrypt(i,s,sigret,rsa,RSA_PKCS1_PADDING);
146 unsigned char *sigbuf, unsigned int siglen, RSA *rsa)
69 RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument
145 RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument
[all...]
H A Drsa.h1 /* crypto/rsa/rsa.h */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rsa); /* called at free */
117 unsigned char *sigret, unsigned int *siglen, const RSA *rsa);
[all...]
H A Drsa_saos.c1 /* crypto/rsa/rsa_saos.c */
62 #include <openssl/rsa.h>
68 unsigned char *sigret, unsigned int *siglen, RSA *rsa)
79 j=RSA_size(rsa);
93 i=RSA_private_encrypt(i,s,sigret,rsa,RSA_PKCS1_PADDING);
107 RSA *rsa)
114 if (siglen != (unsigned int)RSA_size(rsa))
126 i=RSA_public_decrypt((int)siglen,sigbuf,s,rsa,RSA_PKCS1_PADDING);
66 RSA_sign_ASN1_OCTET_STRING(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument
104 RSA_verify_ASN1_OCTET_STRING(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument
H A Drsa_asn1.c62 #include <openssl/rsa.h>
113 RSA *RSAPublicKey_dup(RSA *rsa)
115 return ASN1_item_dup(ASN1_ITEM_rptr(RSAPublicKey), rsa);
118 RSA *RSAPrivateKey_dup(RSA *rsa)
120 return ASN1_item_dup(ASN1_ITEM_rptr(RSAPrivateKey), rsa);
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/openssl/crypto/rsa/
H A Drsa_gen.c1 /* crypto/rsa/rsa_gen.c */
63 #include <openssl/rsa.h>
70 RSA *rsa=NULL; local
88 rsa=RSA_new();
89 if (rsa == NULL) goto err;
92 rsa->e=BN_new();
93 if (rsa->e == NULL) goto err;
101 BN_set_bit(rsa->e,i);
104 if (!BN_set_word(rsa->e,e_value)) goto err;
110 rsa
[all...]
H A Drsa_null.c62 #include <openssl/rsa.h>
73 unsigned char *to, RSA *rsa,int padding);
75 unsigned char *to, RSA *rsa,int padding);
77 unsigned char *to, RSA *rsa,int padding);
79 unsigned char *to, RSA *rsa,int padding);
81 static int RSA_null_mod_exp(const BIGNUM *r0, const BIGNUM *i, RSA *rsa);
83 static int RSA_null_init(RSA *rsa);
84 static int RSA_null_finish(RSA *rsa);
105 unsigned char *to, RSA *rsa, int padding)
112 unsigned char *to, RSA *rsa, in
104 RSA_null_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
111 RSA_null_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
118 RSA_null_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
125 RSA_null_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
140 RSA_null_init(RSA *rsa) argument
145 RSA_null_finish(RSA *rsa) argument
[all...]
H A Drsa_eay.c1 /* crypto/rsa/rsa_eay.c */
62 #include <openssl/rsa.h>
68 unsigned char *to, RSA *rsa,int padding);
70 unsigned char *to, RSA *rsa,int padding);
72 unsigned char *to, RSA *rsa,int padding);
74 unsigned char *to, RSA *rsa,int padding);
75 static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa);
76 static int RSA_eay_init(RSA *rsa);
77 static int RSA_eay_finish(RSA *rsa);
100 unsigned char *to, RSA *rsa, in
99 RSA_eay_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
195 rsa_eay_blinding(RSA *rsa, BN_CTX *ctx) argument
214 setup_blinding(RSA *rsa, BN_CTX *ctx) argument
249 RSA_eay_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
365 RSA_eay_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
498 RSA_eay_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
594 RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa) argument
710 RSA_eay_init(RSA *rsa) argument
716 RSA_eay_finish(RSA *rsa) argument
[all...]
H A Drsa_lib.c1 /* crypto/rsa/rsa_lib.c */
64 #include <openssl/rsa.h>
104 const RSA_METHOD *RSA_get_method(const RSA *rsa) argument
106 return rsa->meth;
109 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth) argument
114 mtmp = rsa->meth;
115 if (mtmp->finish) mtmp->finish(rsa);
117 if (rsa->engine)
119 ENGINE_finish(rsa->engine);
120 rsa
277 RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
283 RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
289 RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
295 RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
306 RSA_blinding_off(RSA *rsa) argument
317 RSA_blinding_on(RSA *rsa, BN_CTX *p_ctx) argument
[all...]
H A Drsa_sign.c1 /* crypto/rsa/rsa_sign.c */
62 #include <openssl/rsa.h>
70 unsigned char *sigret, unsigned int *siglen, RSA *rsa)
79 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign)
81 return rsa->meth->rsa_sign(type, m, m_len,
82 sigret, siglen, rsa);
115 j=RSA_size(rsa);
132 i=RSA_private_encrypt(i,s,sigret,rsa,RSA_PKCS1_PADDING);
146 unsigned char *sigbuf, unsigned int siglen, RSA *rsa)
69 RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument
145 RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument
[all...]
H A Drsa.h1 /* crypto/rsa/rsa.h */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rsa); /* called at free */
117 unsigned char *sigret, unsigned int *siglen, const RSA *rsa);
[all...]
H A Drsa_saos.c1 /* crypto/rsa/rsa_saos.c */
62 #include <openssl/rsa.h>
68 unsigned char *sigret, unsigned int *siglen, RSA *rsa)
79 j=RSA_size(rsa);
93 i=RSA_private_encrypt(i,s,sigret,rsa,RSA_PKCS1_PADDING);
107 RSA *rsa)
113 if (siglen != (unsigned int)RSA_size(rsa))
125 i=RSA_public_decrypt((int)siglen,sigbuf,s,rsa,RSA_PKCS1_PADDING);
66 RSA_sign_ASN1_OCTET_STRING(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument
104 RSA_verify_ASN1_OCTET_STRING(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument
H A Drsa_asn1.c62 #include <openssl/rsa.h>
113 RSA *RSAPublicKey_dup(RSA *rsa)
115 return ASN1_item_dup(ASN1_ITEM_rptr(RSAPublicKey), rsa);
118 RSA *RSAPrivateKey_dup(RSA *rsa)
120 return ASN1_item_dup(ASN1_ITEM_rptr(RSAPrivateKey), rsa);
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/openssl/fips/rsa/
H A Dfips_rsa_gen.c1 /* crypto/rsa/rsa_gen.c */
64 #include <openssl/rsa.h>
69 static int fips_check_rsa(RSA *rsa) argument
80 n=RSA_public_encrypt(sizeof(original_ptext)-1,original_ptext,ctext,rsa,
92 n=RSA_private_decrypt(n,ctext,ptext,rsa,RSA_PKCS1_OAEP_PADDING);
110 RSA *rsa=NULL; local
134 rsa=RSA_new();
135 if (rsa == NULL) goto err;
138 rsa->e=BN_new();
139 if (rsa
[all...]
H A Dfips_rsa_eay.c1 /* crypto/rsa/rsa_eay.c */
62 #include <openssl/rsa.h>
69 unsigned char *to, RSA *rsa,int padding);
71 unsigned char *to, RSA *rsa,int padding);
73 unsigned char *to, RSA *rsa,int padding);
75 unsigned char *to, RSA *rsa,int padding);
76 static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa);
77 static int RSA_eay_init(RSA *rsa);
78 static int RSA_eay_finish(RSA *rsa);
101 unsigned char *to, RSA *rsa, in
100 RSA_eay_public_encrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
203 rsa_eay_blinding(RSA *rsa, BN_CTX *ctx) argument
222 setup_blinding(RSA *rsa, BN_CTX *ctx) argument
257 RSA_eay_private_encrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
373 RSA_eay_private_decrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
506 RSA_eay_public_decrypt(FIPS_RSA_SIZE_T flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument
602 RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa) argument
718 RSA_eay_init(RSA *rsa) argument
724 RSA_eay_finish(RSA *rsa) argument
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/openssl/demos/eay/
H A Dloadrsa.c2 #include <openssl/rsa.h>
24 RSA *rsa,*pub_rsa,*priv_rsa; local
28 rsa=RSA_generate_key(512,RSA_F4,callback,(char *)stdout);
35 len=i2d_RSAPublicKey(rsa,&p);
36 len+=i2d_RSAPrivateKey(rsa,&p);
41 RSA_free(rsa);
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/openssl-0.9.8e/demos/eay/
H A Dloadrsa.c2 #include <openssl/rsa.h>
24 RSA *rsa,*pub_rsa,*priv_rsa; local
28 rsa=RSA_generate_key(512,RSA_F4,callback,(char *)stdout);
35 len=i2d_RSAPublicKey(rsa,&p);
36 len+=i2d_RSAPrivateKey(rsa,&p);
41 RSA_free(rsa);
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/openssl/include/openssl/
H A Drsa.h1 /* crypto/rsa/rsa.h */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rsa); /* called at free */
117 unsigned char *sigret, unsigned int *siglen, const RSA *rsa);
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/openssl-0.9.8e/include/openssl/
H A Drsa.h1 /* crypto/rsa/rsa.h */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rsa); /* called at free */
117 unsigned char *sigret, unsigned int *siglen, const RSA *rsa);
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/openssl/demos/engines/cluster_labs/
H A Dcluster_labs.h7 typedef int cl_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
9 unsigned char *to, RSA *rsa, int padding);
11 unsigned char *to, RSA *rsa, int padding);
13 unsigned char *to, RSA *rsa, int padding);
15 unsigned char *to, RSA *rsa, int padding);
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/openssl-0.9.8e/demos/engines/cluster_labs/
H A Dcluster_labs.h7 typedef int cl_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
9 unsigned char *to, RSA *rsa, int padding);
11 unsigned char *to, RSA *rsa, int padding);
13 unsigned char *to, RSA *rsa, int padding);
15 unsigned char *to, RSA *rsa, int padding);

Completed in 69 milliseconds

1234567891011>>