/freebsd-10.0-release/crypto/openssl/crypto/rsa/ |
H A D | rsa_gen.c | 1 /* crypto/rsa/rsa_gen.c */ 69 #include <openssl/rsa.h> 74 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); 81 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) argument 84 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 85 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 91 if(rsa->meth->rsa_keygen) 92 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); 95 return FIPS_rsa_generate_key_ex(rsa, bit 100 rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) argument [all...] |
H A D | rsa_null.c | 62 #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 D | rsa_crpt.c | 1 /* crypto/rsa/rsa_lib.c */ 64 #include <openssl/rsa.h> 76 RSA *rsa, int padding) 79 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 80 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 86 return(rsa->meth->rsa_pub_enc(flen, from, to, rsa, padding)); 90 RSA *rsa, int padding) 93 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 94 && !(rsa 75 RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 89 RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 103 RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 117 RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 136 RSA_blinding_off(RSA *rsa) argument 147 RSA_blinding_on(RSA *rsa, BN_CTX *ctx) argument 190 RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) argument [all...] |
H A D | rsa_depr.c | 1 /* 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 D | rsa_eay.c | 1 /* 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 unsigned char *to, RSA *rsa, in 153 RSA_eay_public_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 255 rsa_get_blinding(RSA *rsa, int *local, BN_CTX *ctx) argument 350 RSA_eay_private_encrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 492 RSA_eay_private_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 633 RSA_eay_public_decrypt(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding) argument 737 RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) argument 898 RSA_eay_init(RSA *rsa) argument 904 RSA_eay_finish(RSA *rsa) argument [all...] |
H A D | rsa_locl.h | 4 RSA *rsa);
|
H A D | rsa_sign.c | 1 /* crypto/rsa/rsa_sign.c */ 62 #include <openssl/rsa.h> 71 unsigned char *sigret, unsigned int *siglen, RSA *rsa) 81 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) 82 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) 88 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign) 90 return rsa->meth->rsa_sign(type, m, m_len, 91 sigret, siglen, rsa); 124 j=RSA_size(rsa); 70 RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument 173 int_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *rm, size_t *prm_len, const unsigned char *sigbuf, size_t siglen, RSA *rsa) argument 325 RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument [all...] |
H A D | rsa_saos.c | 1 /* 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 D | rsa.h | 1 /* 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 D | rsa_asn1.c | 62 #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);
|
H A D | rsa_pmeth.c | 1 /* crypto/rsa/rsa_pmeth.c */ 63 #include <openssl/rsa.h> 169 RSA *rsa = ctx->pkey->pkey.rsa; local 173 if (rsa->flags & RSA_FLAG_NON_FIPS_ALLOW) 175 if (!(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) && rv) 190 RSA *rsa = ctx->pkey->pkey.rsa; local 213 ret = FIPS_rsa_sign_digest(rsa, tbs, tbslen, rctx->md, 232 tbs, tbslen, sig, &sltmp, rsa); 344 RSA *rsa = ctx->pkey->pkey.rsa; local 660 RSA *rsa = NULL; local [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/engine/ |
H A D | eng_rsax.c | 73 #include <openssl/rsa.h> 109 static int e_rsax_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx); 276 static E_RSAX_MOD_CTX *e_rsax_get_ctx(RSA *rsa, int idx, BIGNUM* m) argument 283 hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); 288 RSA_set_ex_data(rsa, rsax_ex_data_idx, hptr); 305 static int e_rsax_rsa_finish(RSA *rsa) argument 307 E_RSAX_MOD_CTX *hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); 311 RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); 313 if (rsa->_method_mod_n) 314 BN_MONT_CTX_free(rsa 490 e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) argument [all...] |
/freebsd-10.0-release/crypto/openssh/regress/ |
H A D | ssh2putty.sh | 22 openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent | 28 openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= |
|
H A D | keyscan.sh | 11 for t in rsa1 rsa dsa; do
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | rsa.h | 1 /* $OpenBSD: rsa.h,v 1.16 2006/03/25 22:22:43 djm Exp $ */ 20 #include <openssl/rsa.h>
|
H A D | rsa.c | 1 /* $OpenBSD: rsa.c,v 1.30 2013/05/17 00:13:14 djm Exp $ */ 71 #include "rsa.h" 132 rsa_generate_additional_parameters(RSA *rsa) argument 142 if ((BN_sub(aux, rsa->q, BN_value_one()) == 0) || 143 (BN_mod(rsa->dmq1, rsa->d, aux, ctx) == 0) || 144 (BN_sub(aux, rsa->p, BN_value_one()) == 0) || 145 (BN_mod(rsa->dmp1, rsa->d, aux, ctx) == 0))
|
H A D | sshconnect1.c | 34 #include "rsa.h" 91 packet_put_bignum(key->rsa->n); 221 packet_put_bignum(public->rsa->n); 300 respond_to_rsa_challenge(challenge, private->rsa); 336 packet_put_int(BN_num_bits(host_key->rsa->n)); 337 packet_put_bignum(host_key->rsa->e); 338 packet_put_bignum(host_key->rsa->n); 364 respond_to_rsa_challenge(challenge, host_key->rsa); 505 packet_get_bignum(server_key->rsa->e); 506 packet_get_bignum(server_key->rsa [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/asn1/ |
H A D | i2d_pu.c | 65 #include <openssl/rsa.h> 80 return(i2d_RSAPublicKey(a->pkey.rsa,pp));
|
/freebsd-10.0-release/crypto/openssl/crypto/evp/ |
H A D | p_dec.c | 63 #include <openssl/rsa.h> 83 ret=RSA_private_decrypt(ekl,ek,key,priv->pkey.rsa,RSA_PKCS1_PADDING);
|
H A D | p_enc.c | 63 #include <openssl/rsa.h> 82 ret=RSA_public_encrypt(key_len,key,ek,pubk->pkey.rsa,RSA_PKCS1_PADDING);
|
/freebsd-10.0-release/crypto/openssl/apps/ |
H A D | rsa.c | 1 /* apps/rsa.c */ 68 #include <openssl/rsa.h> 104 RSA *rsa=NULL; local 296 rsa = EVP_PKEY_get1_RSA(pkey); 300 if (rsa == NULL) 326 if (!RSA_print(out,rsa,0)) 336 BN_print(out,rsa->n); 342 int r = RSA_check_key(rsa); 377 i=i2d_RSAPublicKey_bio(out,rsa); 379 i=i2d_RSA_PUBKEY_bio(out,rsa); [all...] |
/freebsd-10.0-release/crypto/heimdal/lib/hx509/ |
H A D | test_windows.in | 44 if ${hxtool} info | grep 'rsa: hcrypto null RSA' > /dev/null ; then 55 --generate-key=rsa \ 65 --generate-key=rsa \ 77 --generate-key=rsa \
|
/freebsd-10.0-release/crypto/openssl/engines/ |
H A D | e_gmp.c | 89 #include <openssl/rsa.h> 108 static int e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx); 330 static E_GMP_RSA_CTX *e_gmp_get_rsa(RSA *rsa) argument 332 E_GMP_RSA_CTX *hptr = RSA_get_ex_data(rsa, hndidx_rsa); 350 if(!bn2gmp(rsa->n, hptr->n) || !bn2gmp(rsa->e, hptr->e)) 352 if(!rsa->p || !rsa->q || !rsa->d || !rsa 381 e_gmp_rsa_finish(RSA *rsa) argument 402 e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) argument [all...] |
/freebsd-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | openssl-compat.c | 30 # include <openssl/rsa.h> 83 RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *bn_e, void *cb) argument 96 /* swap rsa/new_rsa then free new_rsa */ 97 tmp_rsa = *rsa; 98 *rsa = *new_rsa;
|
/freebsd-10.0-release/crypto/openssl/ssl/ |
H A D | ssl_rsa.c | 152 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa) argument 157 if (rsa == NULL) 173 RSA_up_ref(rsa); 174 EVP_PKEY_assign_RSA(pkey,rsa); 205 (RSA_flags(pkey->pkey.rsa) & RSA_METHOD_FLAG_NO_CHECK)) 233 RSA *rsa=NULL; local 250 rsa=d2i_RSAPrivateKey_bio(in,NULL); 255 rsa=PEM_read_bio_RSAPrivateKey(in,NULL, 263 if (rsa == NULL) 268 ret=SSL_use_RSAPrivateKey(ssl,rsa); 280 RSA *rsa; local 521 SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa) argument 555 RSA *rsa=NULL; local 602 RSA *rsa; local [all...] |