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

1 2 3

  /external/openssl/crypto/dsa/
dsa_key.c 1 /* crypto/dsa/dsa_key.c */
64 #include <openssl/dsa.h>
67 static int dsa_builtin_keygen(DSA *dsa);
69 int DSA_generate_key(DSA *dsa)
71 if(dsa->meth->dsa_keygen)
72 return dsa->meth->dsa_keygen(dsa);
73 return dsa_builtin_keygen(dsa);
    [all...]
dsa_ossl.c 1 /* crypto/dsa/dsa_ossl.c */
65 #include <openssl/dsa.h>
69 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
70 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp);
72 DSA *dsa);
73 static int dsa_init(DSA *dsa);
    [all...]
dsa_sign.c 1 /* crypto/dsa/dsa_sign.c */
62 #include <openssl/dsa.h>
65 DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
67 return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
71 unsigned int *siglen, DSA *dsa)
75 s=DSA_do_sign(dgst,dlen,dsa);
86 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp
    [all...]
dsa_vrf.c 1 /* crypto/dsa/dsa_vrf.c */
62 #include <openssl/dsa.h>
65 DSA *dsa)
67 return dsa->meth->dsa_do_verify(dgst, dgst_len, sig, dsa);
77 const unsigned char *sigbuf, int siglen, DSA *dsa)
85 ret=DSA_do_verify(dgst,dgst_len,s,dsa);
dsa_ameth.c 62 #include <openssl/dsa.h>
79 DSA *dsa = NULL; local
92 if (!(dsa = d2i_DSAparams(NULL, &pm, pmlen)))
101 if (!(dsa = DSA_new()))
119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)))
126 EVP_PKEY_assign_DSA(pkey, dsa);
132 if (dsa)
133 DSA_free(dsa);
140 DSA *dsa local
202 DSA *dsa = NULL; local
367 DSA *dsa; local
493 DSA *dsa; local
530 DSA *dsa; local
    [all...]
dsa_locl.h 55 #include <openssl/dsa.h>
57 int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits,
dsagen.c 1 /* crypto/dsa/dsagen.c */
60 #include <openssl/dsa.h>
98 DSA *dsa; local
106 dsa=DSA_generate_parameters(1024,seed,20,&counter,&h,cb,bio_err);
108 if (dsa == NULL)
109 DSA_print(bio_err,dsa,0);
dsatest.c 1 /* crypto/dsa/dsatest.c */
82 printf("No DSA support\n");
86 #include <openssl/dsa.h>
140 DSA *dsa=NULL; local
157 BIO_printf(bio_err,"test generation of DSA parameters\n");
160 if(((dsa = DSA_new()) == NULL) || !DSA_generate_parameters_ex(dsa, 512,
172 DSA_print(bio_err,dsa,0);
184 i=BN_bn2bin(dsa->q,buf)
    [all...]
dsa_pmeth.c 67 /* DSA pkey context structure */
126 DSA *dsa = ctx->pkey->pkey.dsa; local
133 ret = DSA_sign(type, tbs, tbslen, sig, &sltmp, dsa);
147 DSA *dsa = ctx->pkey->pkey.dsa; local
154 ret = DSA_verify(type, tbs, tbslen, sig, siglen, dsa);
241 DSA *dsa = NULL local
266 DSA *dsa = NULL; local
    [all...]
dsa.h 1 /* crypto/dsa/dsa.h */
71 #error DSA is disabled.
92 #define DSA_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DSA
105 /* typedef struct dsa_st DSA; */
117 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa);
118 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
121 DSA_SIG *sig, DSA *dsa)
    [all...]
dsa_lib.c 1 /* crypto/dsa/dsa_lib.c */
64 #include <openssl/dsa.h>
73 const char DSA_version[]="DSA" OPENSSL_VERSION_PTEXT;
89 DSA *DSA_new(void)
94 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth)
99 mtmp = dsa->meth;
100 if (mtmp->finish) mtmp->finish(dsa);
102 if (dsa->engine)
104 ENGINE_finish(dsa->engine)
    [all...]
dsa_asn1.c 61 #include <openssl/dsa.h>
101 DSA_free((DSA *)*pval);
109 ASN1_SIMPLE(DSA, version, LONG),
110 ASN1_SIMPLE(DSA, p, BIGNUM),
111 ASN1_SIMPLE(DSA, q, BIGNUM),
112 ASN1_SIMPLE(DSA, g, BIGNUM),
113 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
114 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
115 } ASN1_SEQUENCE_END_cb(DSA, DSAPrivateKey)
117 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DSA, DSAPrivateKey, DSAPrivateKey
    [all...]
dsa_depr.c 1 /* crypto/dsa/dsa_depr.c */
81 #include <openssl/dsa.h>
86 DSA *DSA_generate_parameters(int bits,
93 DSA *ret;
  /libcore/luni/src/test/java/tests/security/interfaces/
DSAKeyPairGeneratorTest.java 50 MyDSA dsa = new MyDSA(dsaParams); local
58 dsa.initialize(dsaParams, random);
64 dsa.initialize(dsaParams, null);
72 dsa.initialize(null, random);
89 MyDSA dsa = new MyDSA(null); local
98 dsa.initialize(520, false, random);
112 dsa.initialize(invalidLen[i], true, random);
125 dsa = new MyDSA(dsaParams);
127 dsa.initialize(520, true, random);
134 dsa.initialize(520, false, random)
    [all...]
  /external/openssl/crypto/asn1/
i2d_pu.c 68 #include <openssl/dsa.h>
84 return(i2d_DSAPublicKey(a->pkey.dsa,pp));
d2i_pu.c 69 #include <openssl/dsa.h>
110 if (!d2i_DSAPublicKey(&(ret->pkey.dsa),
  /external/openssl/include/openssl/
dsa.h 1 /* crypto/dsa/dsa.h */
71 #error DSA is disabled.
92 #define DSA_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DSA
105 /* typedef struct dsa_st DSA; */
117 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa);
118 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
121 DSA_SIG *sig, DSA *dsa)
    [all...]
  /external/openssl/crypto/pem/
pem_all.c 123 #include <openssl/dsa.h>
133 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
154 /* We treat RSA or DSA private keys as a special case.
204 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa)
206 DSA *dtmp;
211 if(dsa) {
    [all...]
pvkfmt.c 67 #include <openssl/dsa.h>
114 /* Convert private key blob to EVP_PKEY: RSA and DSA keys supported */
316 DSA *dsa = NULL; local
321 dsa = DSA_new();
323 if (!dsa || !ret)
325 if (!read_lebn(&p, nbyte, &dsa->p))
327 if (!read_lebn(&p, 20, &dsa->q))
329 if (!read_lebn(&p, nbyte, &dsa->g))
333 if (!read_lebn(&p, nbyte, &dsa->pub_key)
    [all...]
  /external/openssl/apps/
dsaparam.c 76 #include <openssl/dsa.h>
114 DSA *dsa=NULL; local
226 BIO_printf(bio_err," -genkey generate a DSA key\n");
294 dsa = DSA_new();
295 if(!dsa)
297 BIO_printf(bio_err,"Error allocating DSA object\n");
300 BIO_printf(bio_err,"Generating DSA parameters, %d bit long prime\n",num);
318 if(!DSA_generate_parameters_ex(dsa,num,NULL,0,NULL,NULL, &cb))
323 BIO_printf(bio_err,"DSA key generation time-stopped\n")
    [all...]
dsa.c 1 /* apps/dsa.c */
68 #include <openssl/dsa.h>
92 * -modulus - print the DSA public key
101 DSA *dsa=NULL; local
234 BIO_printf(bio_err," -modulus print the DSA public value\n");
268 BIO_printf(bio_err,"read DSA key\n");
282 dsa = EVP_PKEY_get1_DSA(pkey);
286 if (dsa == NULL)
313 if (!DSA_print(out,dsa,0)
    [all...]
dhparam.c 127 #include <openssl/dsa.h>
139 * -dsaparam - read or generate DSA parameters, convert to DH
249 BIO_printf(bio_err," -dsaparam read or generate DSA parameters, convert to DH\n");
281 BIO_printf(bio_err, "generator may not be chosen for DSA parameters\n");
308 DSA *dsa = DSA_new(); local
310 BIO_printf(bio_err,"Generating DSA parameters, %d bit long prime\n",num);
311 if(!dsa || !DSA_generate_parameters_ex(dsa, num,
314 if(dsa) DSA_free(dsa)
370 DSA *dsa; local
    [all...]
testdsa.h 3 DSA *get_dsa512(void );
4 DSA *get_dsa1024(void );
5 DSA *get_dsa2048(void );
39 DSA *get_dsa512()
41 DSA *dsa; local
43 if ((dsa=DSA_new()) == NULL) return(NULL);
44 dsa->priv_key=BN_bin2bn(dsa512_priv,sizeof(dsa512_priv),NULL);
45 dsa->pub_key=BN_bin2bn(dsa512_pub,sizeof(dsa512_pub),NULL);
46 dsa->p=BN_bin2bn(dsa512_p,sizeof(dsa512_p),NULL)
105 DSA *dsa; local
202 DSA *dsa; local
    [all...]
gendsa.c 69 #include <openssl/dsa.h>
81 DSA *dsa=NULL; local
201 BIO_printf(bio_err," - a DSA parameter file as generated by the dsaparam command\n");
222 if ((dsa=PEM_read_bio_DSAparams(in,NULL,NULL,NULL)) == NULL)
224 BIO_printf(bio_err,"unable to load DSA parameter file\n");
260 BIO_printf(bio_err,"Generating DSA key, %d bits\n",
261 BN_num_bits(dsa->p));
262 if (!DSA_generate_key(dsa)) goto end;
266 if (!PEM_write_bio_DSAPrivateKey(out,dsa,enc,NULL,0,NULL, passout)
    [all...]
  /external/openssl/crypto/x509/
x_all.c 70 #include <openssl/dsa.h>
276 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa)
278 return ASN1_d2i_fp_of(DSA,DSA_new,d2i_DSAPrivateKey,fp,dsa);
281 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa)
283 return ASN1_i2d_fp_of_const(DSA,i2d_DSAPrivateKey,fp,dsa);
    [all...]

Completed in 740 milliseconds

1 2 3