/external/chromium_org/third_party/openssl/openssl/crypto/x509/ |
x509type.c | 67 EVP_PKEY *pk; local 73 pk=X509_get_pubkey(x); 75 pk=pkey; 77 if (pk == NULL) return(0); 79 switch (pk->type) 125 if (EVP_PKEY_size(pk) <= 1024/8)/* /8 because it's 1024 bits we look 128 if(pkey==NULL) EVP_PKEY_free(pk);
|
/external/openssl/crypto/x509/ |
x509type.c | 67 EVP_PKEY *pk; local 73 pk=X509_get_pubkey(x); 75 pk=pkey; 77 if (pk == NULL) return(0); 79 switch (pk->type) 125 if (EVP_PKEY_size(pk) <= 1024/8)/* /8 because it's 1024 bits we look 128 if(pkey==NULL) EVP_PKEY_free(pk);
|
/external/chromium_org/third_party/openssl/openssl/crypto/rsa/ |
rsa_prn.c | 84 EVP_PKEY *pk; local 86 pk = EVP_PKEY_new(); 87 if (!pk || !EVP_PKEY_set1_RSA(pk, (RSA *)x)) 89 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 90 EVP_PKEY_free(pk);
|
/external/openssl/crypto/rsa/ |
rsa_prn.c | 84 EVP_PKEY *pk; local 86 pk = EVP_PKEY_new(); 87 if (!pk || !EVP_PKEY_set1_RSA(pk, (RSA *)x)) 89 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 90 EVP_PKEY_free(pk);
|
/external/chromium_org/third_party/openssl/openssl/crypto/dsa/ |
dsa_prn.c | 100 EVP_PKEY *pk; local 102 pk = EVP_PKEY_new(); 103 if (!pk || !EVP_PKEY_set1_DSA(pk, (DSA *)x)) 105 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 106 EVP_PKEY_free(pk); 112 EVP_PKEY *pk; local 114 pk = EVP_PKEY_new(); 115 if (!pk || !EVP_PKEY_set1_DSA(pk, (DSA *)x) [all...] |
/external/openssl/crypto/dsa/ |
dsa_prn.c | 100 EVP_PKEY *pk; local 102 pk = EVP_PKEY_new(); 103 if (!pk || !EVP_PKEY_set1_DSA(pk, (DSA *)x)) 105 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 106 EVP_PKEY_free(pk); 112 EVP_PKEY *pk; local 114 pk = EVP_PKEY_new(); 115 if (!pk || !EVP_PKEY_set1_DSA(pk, (DSA *)x) [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/x509v3/ |
v3_skey.c | 105 ASN1_BIT_STRING *pk; local 124 pk = ctx->subject_req->req_info->pubkey->public_key; 125 else pk = ctx->subject_cert->cert_info->key->public_key; 127 if(!pk) { 132 if (!EVP_Digest(pk->data, pk->length, pkey_dig, &diglen, EVP_sha1(), NULL))
|
/external/openssl/crypto/x509v3/ |
v3_skey.c | 105 ASN1_BIT_STRING *pk; local 124 pk = ctx->subject_req->req_info->pubkey->public_key; 125 else pk = ctx->subject_cert->cert_info->key->public_key; 127 if(!pk) { 132 if (!EVP_Digest(pk->data, pk->length, pkey_dig, &diglen, EVP_sha1(), NULL))
|
/external/libpcap/ |
dlpisubs.c | 130 u_char *ep, *pk; local 172 pk = bufp + sizeof(*sbp); 179 pk = bufp; 183 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) { 195 (*callback)(user, &pkthdr, pk);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KSPrivateKeyEntryTest.java | 71 PrivateKey pk = null; local 73 new KeyStore.PrivateKeyEntry(pk, certs); 87 PrivateKey pk = new tmpPrivateKey(); local 89 new KeyStore.PrivateKeyEntry(pk, chain); 95 new KeyStore.PrivateKeyEntry(pk, chain);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
TrustAnchorTest.java | 64 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 67 new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); 69 new TrustAnchor(validCaNameRfc2253, pk, getEncodingPSOnly()); 71 new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); 73 new TrustAnchor(validCaNameRfc2253, pk, getEncodingNoMinMax()); 87 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 89 new TrustAnchor(validCaNameRfc2253, pk, null); 103 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 108 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, ncCopy); 126 PublicKey pk = new TestKeyPair(keyAlg).getPublic() local 175 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 199 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 217 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 243 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 280 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 304 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 328 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 353 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local [all...] |
PKIXCertPathValidatorResultTest.java | 185 PublicKey pk = testPublicKey; local 190 pk); 194 assertSame(pk, vr.getPublicKey());
|
/external/chromium_org/third_party/openssl/openssl/apps/ |
dsa.c | 339 EVP_PKEY *pk; local 340 pk = EVP_PKEY_new(); 341 EVP_PKEY_set1_DSA(pk, dsa); 343 i = i2b_PVK_bio(out, pk, pvk_encr, 0, passout); 345 i = i2b_PublicKey_bio(out, pk); 347 i = i2b_PrivateKey_bio(out, pk); 348 EVP_PKEY_free(pk);
|
rsa.c | 414 EVP_PKEY *pk; local 415 pk = EVP_PKEY_new(); 416 EVP_PKEY_set1_RSA(pk, rsa); 418 i = i2b_PVK_bio(out, pk, pvk_encr, 0, passout); 420 i = i2b_PublicKey_bio(out, pk); 422 i = i2b_PrivateKey_bio(out, pk); 423 EVP_PKEY_free(pk);
|
/external/chromium_org/third_party/openssl/openssl/crypto/ec/ |
eck_prn.c | 122 EVP_PKEY *pk; local 124 pk = EVP_PKEY_new(); 125 if (!pk || !EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)x)) 127 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 128 EVP_PKEY_free(pk); 134 EVP_PKEY *pk; local 136 pk = EVP_PKEY_new(); 137 if (!pk || !EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)x) [all...] |
/external/chromium_org/third_party/openssl/openssl/ssl/ |
s3_both.c | 573 EVP_PKEY *pk; local 577 pk=X509_get_pubkey(x); 579 pk=pkey; 580 if (pk == NULL) goto err; 582 i=pk->type; 606 if(!pkey) EVP_PKEY_free(pk);
|
/external/openssl/apps/ |
dsa.c | 339 EVP_PKEY *pk; local 340 pk = EVP_PKEY_new(); 341 EVP_PKEY_set1_DSA(pk, dsa); 343 i = i2b_PVK_bio(out, pk, pvk_encr, 0, passout); 345 i = i2b_PublicKey_bio(out, pk); 347 i = i2b_PrivateKey_bio(out, pk); 348 EVP_PKEY_free(pk);
|
rsa.c | 414 EVP_PKEY *pk; local 415 pk = EVP_PKEY_new(); 416 EVP_PKEY_set1_RSA(pk, rsa); 418 i = i2b_PVK_bio(out, pk, pvk_encr, 0, passout); 420 i = i2b_PublicKey_bio(out, pk); 422 i = i2b_PrivateKey_bio(out, pk); 423 EVP_PKEY_free(pk);
|
/external/openssl/crypto/ec/ |
eck_prn.c | 122 EVP_PKEY *pk; local 124 pk = EVP_PKEY_new(); 125 if (!pk || !EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)x)) 127 ret = EVP_PKEY_print_private(bp, pk, off, NULL); 128 EVP_PKEY_free(pk); 134 EVP_PKEY *pk; local 136 pk = EVP_PKEY_new(); 137 if (!pk || !EVP_PKEY_set1_EC_KEY(pk, (EC_KEY *)x) [all...] |
/external/openssl/ssl/ |
s3_both.c | 579 EVP_PKEY *pk; local 583 pk=X509_get_pubkey(x); 585 pk=pkey; 586 if (pk == NULL) goto err; 588 i=pk->type; 612 if(!pkey) EVP_PKEY_free(pk);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KSPrivateKeyEntryTest.java | 64 PrivateKey pk = null; local 66 new KeyStore.PrivateKeyEntry(pk, certs); 80 PrivateKey pk = new tmpPrivateKey(); local 82 new KeyStore.PrivateKeyEntry(pk, chain); 88 new KeyStore.PrivateKeyEntry(pk, chain);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestKeyManager.java | 171 PrivateKey pk = keyManager.getPrivateKey(alias); local 173 out.println(String.valueOf(pk)); 174 return pk;
|
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
IdentityTest.java | 212 PublicKey pk = new PublicKeyStub("aaa", "fff", new byte[] { 1, 2, 3, 4, 5 }); local 214 i.setPublicKey(pk); 222 new IdentityStub(name, pk), Boolean.TRUE 230 i2.setPublicKey(pk); 280 // PublicKey pk = new PublicKeyStub("kkk", "fff", new byte[]{1,2,3,4,5}); 281 // i1.setPublicKey(pk); 283 // i2.setPublicKey(pk); 314 PublicKey pk = new PublicKeyStub("kkk", "Identity.testGetPublicKey", null); local 315 i.setPublicKey(pk); 316 assertSame(pk, i.getPublicKey()) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KeyStore_Impl3Test.java | 112 PrivateKey pk = new KeyStoreTestSupport.MyPrivateKey(tType, "", new byte[10]); local 113 KeyStore.PrivateKeyEntry pKey = new KeyStore.PrivateKeyEntry(pk, certs); 134 kss[i].setKeyEntry(aliases[3], pk, pwd, certs);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
TrustAnchor_ImplTest.java | 540 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 544 ta = new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); 550 ta = new TrustAnchor(x500p, pk, getEncodingNoMinMax()); 555 ta = new TrustAnchor(x500p, pk, null);
|