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

12 3 4 5 6

  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
SignerTest.java 57 KeyPair kp = new KeyPair(new PublicKeyStub("public", "SignerTest.testToString", null), new PrivateKeyStub("private", "SignerTest.testToString", null));
103 KeyPair kp = new KeyPair(publicKey, privateKey);
114 * @tests java.security.Signer#setKeyPair(java.security.KeyPair)
KeyPairGenerator5Test.java 21 import java.security.KeyPair;
KeyStorePrivateKeyEntryTest.java 22 import java.security.KeyPair;
68 KeyPair keyPair = keyPairGenerator.generateKeyPair();
69 PrivateKey privateKey = keyPair.getPrivate();
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator1.java 26 import java.security.KeyPair;
72 public KeyPair generateKeyPair() {
74 return new KeyPair(new PubKey(), new PrivKey());
  /libcore/crypto/src/main/java/org/conscrypt/
OpenSSLDSAKeyPairGenerator.java 21 import java.security.KeyPair;
40 public KeyPair generateKeyPair() {
55 return new KeyPair(pubKey, privKey);
OpenSSLRSAKeyPairGenerator.java 21 import java.security.KeyPair;
43 public KeyPair generateKeyPair() {
50 return new KeyPair(pubKey, privKey);
OpenSSLECKeyPairGenerator.java 21 import java.security.KeyPair;
53 public KeyPair generateKeyPair() {
60 return new KeyPair(new OpenSSLECPublicKey(group, key), new OpenSSLECPrivateKey(group, key));
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
DHPrivateKeyTest.java 26 import java.security.KeyPair;
54 KeyPair kp1 = kg.genKeyPair();
55 KeyPair kp2 = kg.genKeyPair();
DHPublicKeyTest.java 30 import java.security.KeyPair;
58 KeyPair kp1 = kg.genKeyPair();
59 KeyPair kp2 = kg.genKeyPair();
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator1.java 27 import java.security.KeyPair;
73 public KeyPair generateKeyPair() {
75 return new KeyPair(new PubKey(), new PrivKey());
  /libcore/support/src/test/java/tests/security/
KeyAgreementHelper.java 20 import java.security.KeyPair;
27 public class KeyAgreementHelper extends TestHelper<KeyPair> {
35 @Override public void test(KeyPair keyPair) {
36 test(keyPair.getPrivate(), keyPair.getPublic());
KeyFactoryTest.java 20 import java.security.KeyPair;
60 check(new KeyPair(publicKey, privateKey));
63 protected void check(KeyPair keyPair) {}
SignatureHelper.java 20 import java.security.KeyPair;
28 public class SignatureHelper extends TestHelper<KeyPair> {
38 public void test(KeyPair keyPair) {
39 test(keyPair.getPrivate(), keyPair.getPublic());
AlgorithmParameterKeyAgreementHelper.java 21 import java.security.KeyPair;
47 KeyPair keyPair = generator.generateKeyPair();
57 keyAgreement.init(keyPair.getPrivate());
62 keyAgreement.doPhase(keyPair.getPublic(), true);
  /development/samples/Vault/src/com/example/android/vault/
SecretKeyWrapper.java 25 import java.security.KeyPair;
47 private final KeyPair mPair;
68 mPair = new KeyPair(entry.getCertificate().getPublicKey(), entry.getPrivateKey());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
KeyPairGeneratorSpi.java 5 import java.security.KeyPair;
63 public KeyPair generateKeyPair()
79 return new KeyPair(new BCDSAPublicKey(pub),
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
KeyPairGeneratorSpi.java 5 import java.security.KeyPair;
69 public KeyPair generateKeyPair()
75 return new KeyPair(new BCRSAPublicKey(pub),
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/
SslContextBuilder.java 23 import java.security.KeyPair;
67 KeyPair keyPair = generateKeyPair();
68 X509Certificate certificate = selfSignedCertificate(keyPair);
73 keyStore.setKeyEntry("private", keyPair.getPrivate(), password, certificateChain);
89 private KeyPair generateKeyPair() throws GeneralSecurityException {
96 * Generates a certificate for {@code hostName} containing {@code keyPair}'s
97 * public key, signed by {@code keyPair}'s private key.
100 private X509Certificate selfSignedCertificate(KeyPair keyPair) throws GeneralSecurityException
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
SignatureBenchmark.java 22 import java.security.KeyPair;
59 private static Map<String,KeyPair> KEY_PAIRS = new HashMap<String,KeyPair>();
72 KeyPair keyPair = KEY_PAIRS.get(keyAlgorithm);
73 if (keyPair == null) {
75 keyPair = generator.generateKeyPair();
76 KEY_PAIRS.put(keyAlgorithm, keyPair);
78 this.privateKey = keyPair.getPrivate();
79 this.publicKey = keyPair.getPublic()
    [all...]
KeyPairGeneratorBenchmark.java 21 import java.security.KeyPair;
62 KeyPair keyPair = generator.generateKeyPair();
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherRSAThread.java 19 import java.security.KeyPair;
38 KeyPair kp = kpg.generateKeyPair();
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyPairGeneratorSpiTest.java 27 import java.security.KeyPair;
72 KeyPair kp = keyPairGen.generateKeyPair();
73 assertNull("Not null KeyPair", kp);
KeyStorePrivateKeyEntryTest.java 22 import java.security.KeyPair;
68 KeyPair keyPair = keyPairGenerator.generateKeyPair();
69 PrivateKey privateKey = keyPair.getPrivate();
  /libcore/luni/src/test/java/tests/security/interfaces/
DSAPublicKeyTest.java 20 import java.security.KeyPair;
39 KeyPair keys = null;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyPairGeneratorSpi.java 4 import java.security.KeyPair;
64 public KeyPair generateKeyPair()
116 return new KeyPair(new BCDHPublicKey(pub),

Completed in 748 milliseconds

12 3 4 5 6