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

1 2 3 4 5 6

  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyPairTest.java 25 import java.security.KeyPair;
33 * Tests for fields and methods of class <code>KeyPair</code>
69 * Test #1 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br>
70 * Assertion: creates new <code>KeyPair</code> instance using valid
74 Object kp = new KeyPair(null, null);
75 assertTrue(kp instanceof KeyPair);
77 kp = new KeyPair(null, TestKeyPair.getPrivate());
78 assertTrue(kp instanceof KeyPair);
79 kp = new KeyPair(TestKeyPair.getPublic(), null);
80 assertTrue(kp instanceof KeyPair);
    [all...]
SignerTest.java 28 import java.security.KeyPair;
65 KeyPair kp = new KeyPair(new PublicKeyStub("public", "SignerTest.testToString", null),
129 KeyPair kp = new KeyPair(publicKey, privateKey);
140 * java.security.Signer#setKeyPair(java.security.KeyPair)
153 KeyPair kp = new KeyPair(null, null);
  /external/chromium_org/net/ssl/
openssl_client_key_store.h 80 // KeyPair is an internal class used to hold a pair of private / public
82 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.
96 // Returns the index of the keypair for |public_key|. or -1 if not found.
99 std::vector<KeyPair> pairs_
    [all...]
openssl_client_key_store.cc 52 OpenSSLClientKeyStore::KeyPair::KeyPair(EVP_PKEY* pub_key,
58 OpenSSLClientKeyStore::KeyPair::~KeyPair() {
63 OpenSSLClientKeyStore::KeyPair::KeyPair(const KeyPair& other) {
68 void OpenSSLClientKeyStore::KeyPair::operator=(const KeyPair& other) {
91 pairs_.push_back(KeyPair(pub_key, private_key))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/crypto/
KeyPair.idl 33 ] interface KeyPair {
KeyPair.h 45 class KeyPair : public ScriptWrappable, public RefCounted<KeyPair> {
47 static PassRefPtr<KeyPair> create(const blink::WebCryptoKey& publicKey, const blink::WebCryptoKey& privateKey);
53 KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey);
KeyPair.cpp 32 #include "modules/crypto/KeyPair.h"
39 PassRefPtr<KeyPair> KeyPair::create(const blink::WebCryptoKey& publicKey, const blink::WebCryptoKey& privateKey)
43 return adoptRef(new KeyPair(Key::create(publicKey), Key::create(privateKey)));
46 KeyPair::KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey)
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KeyPairTest.java 30 * Tests for fields and methods of class <code>KeyPair</code>
73 * Test #1 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br>
74 * Assertion: creates new <code>KeyPair</code> instance using valid
78 Object kp = new KeyPair(null, null);
79 assertTrue(kp instanceof KeyPair);
83 * Test #2 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br>
84 * Assertion: creates new <code>KeyPair</code> instance using valid
89 Object kp = new KeyPair(TestKeyPair.getPublic(), TestKeyPair.getPrivate());
90 assertTrue(kp instanceof KeyPair);
98 KeyPair kp = new KeyPair(null, null)
    [all...]
  /libcore/support/src/test/java/tests/security/
CipherAsymmetricCryptHelper.java 19 import java.security.KeyPair;
22 public class CipherAsymmetricCryptHelper extends CipherHelper<KeyPair> {
31 public void test(KeyPair keyPair) {
32 test(keyPair.getPrivate(), keyPair.getPublic());
KeyPairGeneratorTest.java 19 import java.security.KeyPair;
27 private final TestHelper<KeyPair> helper;
31 protected KeyPairGeneratorTest(String algorithmName, TestHelper<KeyPair> helper) {
53 KeyPair keyPair = generator.generateKeyPair();
55 assertNotNull("no keypair generated", keyPair);
56 assertNotNull("no public key generated", keyPair.getPublic());
57 assertNotNull("no private key generated", keyPair.getPrivate());
59 helper.test(keyPair);
    [all...]
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator3.java 24 import java.security.KeyPair;
43 public KeyPair generateKeyPair() {
46 return new KeyPair(pubK, priK);
MyKeyPairGenerator2.java 25 import java.security.KeyPair;
63 public KeyPair generateKeyPair() {
MyKeyPairGeneratorSpi.java 26 import java.security.KeyPair;
48 public KeyPair generateKeyPair() {
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator3.java 25 import java.security.KeyPair;
44 public KeyPair generateKeyPair() {
47 return new KeyPair(pubK, priK);
MyKeyPairGenerator2.java 26 import java.security.KeyPair;
64 public KeyPair generateKeyPair() {
MyKeyPairGeneratorSpi.java 27 import java.security.KeyPair;
49 public KeyPair generateKeyPair() {
  /libcore/luni/src/main/java/java/security/
KeyPair.java 23 * {@code KeyPair} is a container for a public key and a private key. Since the
29 public final class KeyPair implements Serializable {
36 * Constructs a new instance of {@code KeyPair} with a public key and the
44 public KeyPair(PublicKey publicKey, PrivateKey privateKey) {
KeyPairGeneratorSpi.java 36 * Computes and returns a new unique {@code KeyPair} each time this method
39 * @return a new unique {@code KeyPair} each time this method is called.
41 public abstract KeyPair generateKeyPair();
  /libcore/luni/src/test/java/libcore/javax/crypto/spec/
KeyFactoryTestDH.java 18 import java.security.KeyPair;
30 @Override protected void check(KeyPair keyPair) {
31 new KeyAgreementHelper("DH").test(keyPair);
KeyFactoryTestDSA.java 18 import java.security.KeyPair;
31 @Override protected void check(KeyPair keyPair) {
32 new SignatureHelper("DSA").test(keyPair);
KeyFactoryTestRSA.java 18 import java.security.KeyPair;
32 @Override protected void check(KeyPair keyPair) {
33 new CipherAsymmetricCryptHelper("RSA").test(keyPair);
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
KeyPairTest.java 26 import java.security.KeyPair;
38 * Tests for <code>KeyPair</code> serialization
43 private KeyPair keyPair;
51 keyPair = new KeyPair(publicKey, privateKey);
59 SerializationTest.verifyGolden(this, keyPair, comparator);
67 SerializationTest.verifySelf(keyPair, comparator);
71 // comparator for KeyPair objects
76 Key key1 = ((KeyPair)test).getPublic()
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
OldKeyPairGeneratorTestDH.java 19 import java.security.KeyPair;
33 KeyPair keyPair = generator.generateKeyPair();
35 assertNotNull("no keypair generated", keyPair);
36 assertNotNull("no public key generated", keyPair.getPublic());
37 assertNotNull("no private key generated", keyPair.getPrivate());
39 new KeyAgreementHelper("DH").test(keyPair);
OldDHTest.java 21 import java.security.KeyPair;
47 KeyPair key = gen.generateKeyPair();
  /libcore/luni/src/test/java/tests/security/interfaces/
DSAPrivateKeyTest.java 20 import java.security.KeyPair;
38 KeyPair keyPair = keyGen.generateKeyPair();
39 DSAPrivateKey key = (DSAPrivateKey) keyPair.getPrivate();

Completed in 1457 milliseconds

1 2 3 4 5 6