/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) 119 if (EVP_PKEY_size(pk) <= 1024/8)/* /8 because it's 1024 bits we look 122 if(pkey==NULL) 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/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/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 EVP_Digest(pk->data, pk->length, pkey_dig, &diglen, EVP_sha1(), NULL);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KSPrivateKeyEntryTest.java | 70 PrivateKey pk = null; local 72 new KeyStore.PrivateKeyEntry(pk, certs); 86 PrivateKey pk = new tmpPrivateKey(); local 88 new KeyStore.PrivateKeyEntry(pk, chain); 94 new KeyStore.PrivateKeyEntry(pk, chain);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
TrustAnchorTest.java | 63 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 66 new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); 68 new TrustAnchor(validCaNameRfc2253, pk, getEncodingPSOnly()); 70 new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); 72 new TrustAnchor(validCaNameRfc2253, pk, getEncodingNoMinMax()); 85 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 87 new TrustAnchor(validCaNameRfc2253, pk, null); 100 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 105 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, ncCopy); 123 PublicKey pk = new TestKeyPair(keyAlg).getPublic() local 171 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 194 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 211 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 236 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 274 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 297 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 320 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 344 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local [all...] |
PKIXCertPathValidatorResultTest.java | 181 PublicKey pk = testPublicKey; local 186 pk); 190 assertSame(pk, vr.getPublicKey());
|
/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 | 572 EVP_PKEY *pk; local 576 pk=X509_get_pubkey(x); 578 pk=pkey; 579 if (pk == NULL) goto err; 581 i=pk->type; 605 if(!pkey) EVP_PKEY_free(pk);
|
/libcore/luni/src/test/java/libcore/java/security/ |
SignatureTest.java | 155 PublicKey pk = keyFactory.generatePublic(keySpec); local 158 sig.initVerify(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 | 211 PublicKey pk = new PublicKeyStub("aaa", "fff", new byte[]{1,2,3,4,5}); local 213 i.setPublicKey(pk); 221 new IdentityStub(name, pk), Boolean.TRUE 228 i2.setPublicKey(pk); 279 // PublicKey pk = new PublicKeyStub("kkk", "fff", new byte[]{1,2,3,4,5}); 280 // i1.setPublicKey(pk); 282 // 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 | 537 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); local 541 ta = new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); 547 ta = new TrustAnchor(x500p, pk, getEncodingNoMinMax()); 552 ta = new TrustAnchor(x500p, pk, null);
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
eap_gpsk.c | 30 u8 pk[EAP_GPSK_MAX_PK_LEN]; member in struct:eap_gpsk_data 427 data->pk, &data->pk_len) < 0) {
|
/external/wpa_supplicant_8/src/eap_server/ |
eap_server_gpsk.c | 31 u8 pk[EAP_GPSK_MAX_PK_LEN]; member in struct:eap_gpsk_data 428 data->pk, &data->pk_len) < 0) {
|
/libcore/luni/src/test/java/tests/java/security/ |
IdentityTest.java | 216 PublicKey pk = new PublicKeyStub("aaa", "fff", new byte[]{1,2,3,4,5}); local 218 i.setPublicKey(pk); 226 new IdentityStub(name, pk), Boolean.TRUE 233 i2.setPublicKey(pk); 283 // PublicKey pk = new PublicKeyStub("kkk", "fff", new byte[]{1,2,3,4,5}); 284 // i1.setPublicKey(pk); 286 // i2.setPublicKey(pk); 317 PublicKey pk = new PublicKeyStub("kkk", "Identity.testGetPublicKey", null); local 318 i.setPublicKey(pk); 319 assertSame(pk, i.getPublicKey()) [all...] |
/libcore/luni/src/test/java/tests/java/sql/ |
StressTest.java | 165 int pk = 1; local 171 insertNewRecord(c, pk++); 314 private void insertNewRecord(Connection c, int pk) { 321 ps.setInt(1, pk);
|
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXCertPathValidatorResultTest.java | 175 PublicKey pk = testPublicKey; local 180 pk); 184 assertSame(pk, vr.getPublicKey());
|
/external/wpa_supplicant/ |
crypto_cryptoapi.c | 685 struct crypto_public_key *pk; local 688 pk = os_zalloc(sizeof(*pk)); 689 if (pk == NULL) 696 os_free(pk); 700 if (!CryptAcquireContext(&pk->prov, NULL, MS_DEF_PROV, PROV_RSA_FULL, 703 os_free(pk); 708 if (!CryptImportPublicKeyInfo(pk->prov, X509_ASN_ENCODING | 711 &pk->rsa)) { 713 CryptReleaseContext(pk->prov, 0) [all...] |
crypto_libtomcrypt.c | 426 struct crypto_public_key *pk; local 428 pk = os_zalloc(sizeof(*pk)); 429 if (pk == NULL) 432 res = rsa_import(key, len, &pk->rsa); 437 os_free(pk); 441 if (pk->rsa.type != PK_PUBLIC) { 444 rsa_free(&pk->rsa); 445 os_free(pk); 449 return pk; 457 struct crypto_private_key *pk; local [all...] |
eap_gpsk.c | 30 u8 pk[EAP_GPSK_MAX_PK_LEN]; member in struct:eap_gpsk_data 370 data->pk, &data->pk_len) < 0) {
|