HomeSort by relevance Sort by last modified time
    Searched refs:RSA (Results 1 - 25 of 105) sorted by null

1 2 3 4 5

  /external/openssh/
rsa.h 1 /* $OpenBSD: rsa.h,v 1.16 2006/03/25 22:22:43 djm Exp $ */
7 * RSA key generation, encryption and decryption.
20 #include <openssl/rsa.h>
22 void rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *);
23 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
24 void rsa_generate_additional_parameters(RSA *);
rsa.c 1 /* $OpenBSD: rsa.c,v 1.29 2006/11/06 21:25:28 markus Exp $ */
37 * Description of the RSA algorithm can be found e.g. from the following
54 * The RSA Frequently Asked Questions document by RSA Data Security,
57 * RSA in 3 lines of perl by Adam Back <aba@atlax.ex.ac.uk>, 1995, as
71 #include "rsa.h"
75 rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key)
104 rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key)
132 rsa_generate_additional_parameters(RSA *rsa)
    [all...]
  /external/openssl/crypto/rsa/
rsa_asn1.c 62 #include <openssl/rsa.h>
75 RSA_free((RSA *)*pval);
83 ASN1_SIMPLE(RSA, version, LONG),
84 ASN1_SIMPLE(RSA, n, BIGNUM),
85 ASN1_SIMPLE(RSA, e, BIGNUM),
86 ASN1_SIMPLE(RSA, d, BIGNUM),
87 ASN1_SIMPLE(RSA, p, BIGNUM),
88 ASN1_SIMPLE(RSA, q, BIGNUM),
89 ASN1_SIMPLE(RSA, dmp1, BIGNUM),
90 ASN1_SIMPLE(RSA, dmq1, BIGNUM)
    [all...]
rsa_null.c 62 #include <openssl/rsa.h>
65 /* This is a dummy RSA implementation that just returns errors when called.
66 * It is designed to allow some RSA functions to work while stopping those
67 * covered by the RSA patent. That is RSA, encryption, decryption, signing
68 * and verify is not allowed but RSA key generation, key checking and other
69 * operations (like storing RSA keys) are permitted.
73 unsigned char *to, RSA *rsa,int padding);
75 unsigned char *to, RSA *rsa,int padding)
    [all...]
rsa_locl.h 4 RSA *rsa);
rsa.h 1 /* crypto/rsa/rsa.h */
11 * apply to all code found in this distribution, be it the RC4, RSA,
74 #error RSA is disabled.
82 /* typedef struct rsa_st RSA; */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding)
    [all...]
rsa_prn.c 1 /* crypto/rsa/rsa_prn.c */
61 #include <openssl/rsa.h>
65 int RSA_print_fp(FILE *fp, const RSA *x, int off)
82 int RSA_print(BIO *bp, const RSA *x, int off)
87 if (!pk || !EVP_PKEY_set1_RSA(pk, (RSA *)x))
rsa_lib.c 1 /* crypto/rsa/rsa_lib.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
64 #include <openssl/rsa.h>
74 const char RSA_version[]="RSA" OPENSSL_VERSION_PTEXT;
78 RSA *RSA_new(void)
80 RSA *r=RSA_new_method(NULL);
111 const RSA_METHOD *RSA_get_method(const RSA *rsa)
113 return rsa->meth;
116 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth
    [all...]
rsa_depr.c 1 /* crypto/rsa/rsa_depr.c */
63 #include <openssl/rsa.h>
71 RSA *RSA_generate_key(int bits, unsigned long e_value,
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);
    [all...]
rsa_crpt.c 1 /* crypto/rsa/rsa_lib.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
64 #include <openssl/rsa.h>
70 int RSA_size(const RSA *r)
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))
    [all...]
rsa_test.c 15 printf("No RSA support\n");
19 #include <openssl/rsa.h>
33 static int key1(RSA *key, unsigned char *c)
82 static int key2(RSA *key, unsigned char *c)
127 static int key3(RSA *key, unsigned char *c)
214 RSA *key;
rsa_saos.c 1 /* crypto/rsa/rsa_saos.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
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))
    [all...]
  /external/openssl/include/openssl/
rsa.h 1 /* crypto/rsa/rsa.h */
11 * apply to all code found in this distribution, be it the RC4, RSA,
74 #error RSA is disabled.
82 /* typedef struct rsa_st RSA; */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding)
    [all...]
x509.h 11 * apply to all code found in this distribution, be it the RC4, RSA,
96 #include <openssl/rsa.h>
691 RSA *d2i_RSAPrivateKey_fp(FILE *fp,RSA **rsa);
692 int i2d_RSAPrivateKey_fp(FILE *fp,RSA *rsa);
693 RSA *d2i_RSAPublicKey_fp(FILE *fp,RSA **rsa);
    [all...]
  /external/ipsec-tools/src/racoon/
rsalist.h 38 #include <openssl/rsa.h>
52 RSA *rsa; member in struct:rsa_key
55 int rsa_key_insert(struct genlist *list, struct netaddr *src, struct netaddr *dst, RSA *rsa);
59 RSA *rsa_try_check_rsasign(vchar_t *source, vchar_t *sig, struct genlist *list);
prsa_par.h 96 RSA *rsa; member in union:YYSTYPE
crypto_openssl.h 40 #include <openssl/rsa.h>
63 extern int eay_check_rsasign __P((vchar_t *, vchar_t *, RSA *));
64 extern vchar_t *eay_get_rsasign __P((vchar_t *, RSA *));
66 /* RSA */
67 extern vchar_t *eay_rsa_sign __P((vchar_t *, RSA *));
68 extern int eay_rsa_verify __P((vchar_t *, vchar_t *, RSA *));
220 RSA *base64_pubkey2rsa(char *in);
221 RSA *bignum_pubkey2rsa(BIGNUM *in);
prsa_tok.l 36 /* This file contains a tokeniser for FreeS/WAN-style ipsec.secrets RSA keys. */
40 #include <openssl/rsa.h>
60 RSA { return TAG_RSA; }
  /external/openssl/crypto/pem/
pem_all.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
120 #include <openssl/rsa.h>
130 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa);
154 /* We treat RSA or DSA private keys as a special case.
162 static RSA *pkey_get_rsa(EVP_PKEY *key, RSA **rsa)
164 RSA *rtmp
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSignature.java 40 RSA, DSA, EC,
71 * @param algorithm OpenSSL name of the algorithm, e.g. "RSA-SHA1".
78 if ("RSA-MD2".equals(algorithm)) {
126 case RSA:
128 throw new InvalidKeyException("Signature not initialized as RSA");
142 throw new InvalidKeyException("Need DSA or RSA or EC private key");
155 if (engineType != EngineType.RSA) {
156 throw new InvalidKeyException("Signature not initialized as RSA");
162 if (engineType != EngineType.RSA) {
163 throw new InvalidKeyException("Signature not initialized as RSA");
    [all...]
  /external/openssl/crypto/asn1/
n_pkey.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
62 #include <openssl/rsa.h>
109 static RSA *d2i_RSA_NET_2(RSA **a, ASN1_OCTET_STRING *os,
114 int i2d_Netscape_RSA(const RSA *a, unsigned char **pp,
121 int i2d_RSA_NET(const RSA *a, unsigned char **pp,
238 RSA *d2i_Netscape_RSA(RSA **a, const unsigned char **pp, long length,
245 RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length
    [all...]
  /external/openssl/crypto/x509/
x_all.c 11 * apply to all code found in this distribution, be it the RC4, RSA,
67 #include <openssl/rsa.h>
227 RSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa)
229 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(RSAPrivateKey), fp, rsa);
232 int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa)
234 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(RSAPrivateKey), fp, rsa);
237 RSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa
    [all...]
x509.h 11 * apply to all code found in this distribution, be it the RC4, RSA,
96 #include <openssl/rsa.h>
691 RSA *d2i_RSAPrivateKey_fp(FILE *fp,RSA **rsa);
692 int i2d_RSAPrivateKey_fp(FILE *fp,RSA *rsa);
693 RSA *d2i_RSAPublicKey_fp(FILE *fp,RSA **rsa);
    [all...]
  /external/openssh/openbsd-compat/
openssl-compat.c 30 # include <openssl/rsa.h>
83 RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *bn_e, void *cb)
85 RSA *new_rsa, tmp_rsa;
96 /* swap rsa/new_rsa then free new_rsa */
97 tmp_rsa = *rsa;
98 *rsa = *new_rsa;
  /libcore/luni/src/test/native/
test_openssl_engine.cpp 33 void operator()(RSA* p) const {
37 typedef UniquePtr<RSA, RSA_Delete> Unique_RSA;
63 Unique_RSA rsa(EVP_PKEY_get1_RSA(key));
64 rsa->engine = e;
65 rsa->flags |= RSA_FLAG_EXT_PKEY;

Completed in 149 milliseconds

1 2 3 4 5