/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/apps/ |
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...] |
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...] |
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...] |
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...] |
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...] |
/external/openssl/crypto/dsa/ |
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);
|
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...] |
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_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...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
KeyAgreementTest.java | 432 DSAParameterSpec dsa = new DSAParameterSpec(new BigInteger("56"), local 436 kAgs[i].init(privKey, dsa); 442 kAgs[i].init(privKey, dsa, new SecureRandom()); 448 kAgs[i].init(privKey, dsa, random);
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
OpenSSLSignature.java | 72 jdkToOpenSsl.put("SHA/DSA", SHA1DSA.class); 73 jdkToOpenSsl.put("DSA", SHA1DSA.class); 86 * Holds a pointer to the native DSA key. 88 private int dsa; field in class:OpenSSLSignature 180 dsa = NativeCrypto.EVP_PKEY_new_DSA(dsaParams.getP().toByteArray(), 197 throw new InvalidKeyException("Need DSA or RSA public key"); 218 int handle = (rsa != 0) ? rsa : dsa; 222 throw new SignatureException("Need DSA or RSA public key"); 236 if (dsa != 0) { 237 NativeCrypto.EVP_PKEY_free(dsa); [all...] |
/external/openssl/crypto/pem/ |
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...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
KeyAgreementTest.java | 450 DSAParameterSpec dsa = new DSAParameterSpec(new BigInteger("56"), local 454 kAgs[i].init(privKey, dsa); 460 kAgs[i].init(privKey, dsa, new SecureRandom()); 466 kAgs[i].init(privKey, dsa, random);
|
/external/openssl/crypto/evp/ |
evp.h | 140 struct dsa_st *dsa; /* DSA */ member in union:evp_pkey_st::__anon9021 413 #define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\ 414 (char *)(dsa)) [all...] |
/external/openssl/include/openssl/ |
evp.h | 140 struct dsa_st *dsa; /* DSA */ member in union:evp_pkey_st::__anon9077 413 #define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\ 414 (char *)(dsa)) [all...] |