Home
last modified time | relevance | path

Searched refs:KeyPair (Results 1 – 25 of 56) sorted by relevance

123

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyPairTest.java78 Object kp = new KeyPair(null, null);
79 assertTrue(kp instanceof KeyPair);
89 Object kp = new KeyPair(TestKeyPair.getPublic(), TestKeyPair.getPrivate());
90 assertTrue(kp instanceof KeyPair);
98 KeyPair kp = new KeyPair(null, null);
109 KeyPair kp = new KeyPair(null, pk);
118 KeyPair kp = new KeyPair(null, null);
129 KeyPair kp = new KeyPair(pk, null);
DSignerTest.java57KeyPair kp = new KeyPair(new PublicKeyStub("public", "SignerTest.testToString", null), new Private… in test_toString()
103 KeyPair kp = new KeyPair(publicKey, privateKey); in testGetPrivateKey()
DKeyStorePrivateKeyEntryTest.java22 import java.security.KeyPair;
68 KeyPair keyPair = keyPairGenerator.generateKeyPair(); in testGetCertificateChain()
DKeyFactory2Test.java22 import java.security.KeyPair;
104 KeyPair keys = keyGen.generateKeyPair(); in test_generatePrivateLjava_security_spec_KeySpec()
145 KeyPair keys = keyGen.generateKeyPair(); in test_generatePublicLjava_security_spec_KeySpec()
254 KeyPair keys = keyGen.generateKeyPair(); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
328 KeyPair keys = keyGen.generateKeyPair(); in test_translateKeyLjava_security_Key()
DKeyPairGenerator3Test.java97 KeyPair kp, kp1; in testGenKeyPair01()
123 KeyPair kp, kp1; in testGenKeyPair02()
DSignature2Test.java22 import java.security.KeyPair;
33 static KeyPair keys;
DKeyPairGenerator5Test.java21 import java.security.KeyPair;
DKeyPairGeneratorSpiTest.java76 KeyPair kp = keyPairGen.generateKeyPair(); in testKeyPairGeneratorSpi01()
DKeyStore3Test.java27 import java.security.KeyPair;
50 private KeyPair keyPair;
/external/chromium_org/net/ssl/
Dopenssl_client_key_store.h82 class KeyPair {
84 explicit KeyPair(EVP_PKEY* pub_key, EVP_PKEY* priv_key);
85 KeyPair(const KeyPair& other);
86 void operator=(const KeyPair& other);
87 ~KeyPair();
93 KeyPair(); // intentionally not implemented.
99 std::vector<KeyPair> pairs_;
Dopenssl_client_key_store.cc52 OpenSSLClientKeyStore::KeyPair::KeyPair(EVP_PKEY* pub_key, in KeyPair() function in net::OpenSSLClientKeyStore::KeyPair
58 OpenSSLClientKeyStore::KeyPair::~KeyPair() { in ~KeyPair()
63 OpenSSLClientKeyStore::KeyPair::KeyPair(const KeyPair& other) { in KeyPair() function in net::OpenSSLClientKeyStore::KeyPair
68 void OpenSSLClientKeyStore::KeyPair::operator=(const KeyPair& other) { in operator =()
91 pairs_.push_back(KeyPair(pub_key, private_key)); in AddKeyPair()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
DKeyPairTest.java26 import java.security.KeyPair;
43 private KeyPair keyPair;
51 keyPair = new KeyPair(publicKey, privateKey); in setUp()
76 Key key1 = ((KeyPair)test).getPublic();
77 Key key2 = ((KeyPair)reference).getPublic();
87 key1 = ((KeyPair)test).getPrivate();
88 key2 = ((KeyPair)reference).getPrivate();
/external/chromium_org/third_party/WebKit/Source/modules/crypto/
DKeyPair.cpp39 PassRefPtr<KeyPair> KeyPair::create(const blink::WebCryptoKey& publicKey, const blink::WebCryptoKey… in create()
43 return adoptRef(new KeyPair(Key::create(publicKey), Key::create(privateKey))); in create()
46 KeyPair::KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey) in KeyPair() function in WebCore::KeyPair
DKeyPair.h45 class KeyPair : public ScriptWrappable, public RefCounted<KeyPair> {
47 …static PassRefPtr<KeyPair> create(const blink::WebCryptoKey& publicKey, const blink::WebCryptoKey&…
53 KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey);
DCryptoResultImpl.cpp81 m_promiseResolver->resolve(KeyPair::create(publicKey, privateKey)); in completeWithKeyPair()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator3.java24 import java.security.KeyPair;
43 public KeyPair generateKeyPair() { in generateKeyPair()
46 return new KeyPair(pubK, priK); in generateKeyPair()
DMyKeyPairGenerator1.java26 import java.security.KeyPair;
72 public KeyPair generateKeyPair() { in generateKeyPair()
74 return new KeyPair(new PubKey(), new PrivKey()); in generateKeyPair()
DMyKeyPairGenerator2.java25 import java.security.KeyPair;
63 public KeyPair generateKeyPair() { in generateKeyPair()
DMyKeyPairGeneratorSpi.java26 import java.security.KeyPair;
48 public KeyPair generateKeyPair() { in generateKeyPair()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/
DSslContextBuilder.java23 import java.security.KeyPair;
67 KeyPair keyPair = generateKeyPair(); in build()
89 private KeyPair generateKeyPair() throws GeneralSecurityException { in generateKeyPair()
100 private X509Certificate selfSignedCertificate(KeyPair keyPair) throws GeneralSecurityException { in selfSignedCertificate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DKeyPairGeneratorSpi.java5 import java.security.KeyPair;
69 public KeyPair generateKeyPair() in generateKeyPair()
75 return new KeyPair(new BCRSAPublicKey(pub), in generateKeyPair()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DKeyPairGeneratorSpi.java5 import java.security.KeyPair;
63 public KeyPair generateKeyPair() in generateKeyPair()
79 return new KeyPair(new BCDSAPublicKey(pub), in generateKeyPair()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyPairGeneratorSpi.java4 import java.security.KeyPair;
64 public KeyPair generateKeyPair() in generateKeyPair()
116 return new KeyPair(new BCDHPublicKey(pub), in generateKeyPair()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java6 import java.security.KeyPair;
249 public KeyPair generateKeyPair() in generateKeyPair()
265 return new KeyPair(pubKey, in generateKeyPair()
270 return new KeyPair(new BCECPublicKey(algorithm, pub, configuration), in generateKeyPair()
279 … return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DEncodedKeySpec2Test.java22 import java.security.KeyPair;
41 KeyPair keys = keyGen.generateKeyPair(); in test_getEncoded()

123