HomeSort by relevance Sort by last modified time
    Searched full:keyagreement (Results 1 - 25 of 51) sorted by null

1 2 3

  /libcore/luni/src/test/java/libcore/javax/crypto/
ECDHKeyAgreementTest.java 43 import javax.crypto.KeyAgreement;
48 * Tests for all registered Elliptic Curve Diffie-Hellman {@link KeyAgreement} providers.
92 * of: first key pair, second key pair, and the {@code KeyAgreement}. This is to check that
93 * the {@code KeyAgreement} instances work with keys of all registered providers.
151 KeyAgreement keyAgreement = getKeyAgreement(provider);
153 keyAgreement.init(null);
163 KeyAgreement keyAgreement = getKeyAgreement(provider);
165 keyAgreement.init(KAT_PUBLIC_KEY1)
    [all...]
  /libcore/support/src/test/java/tests/security/
KeyAgreementHelper.java 24 import javax.crypto.KeyAgreement;
41 KeyAgreement keyAgreement = null;
43 keyAgreement = KeyAgreement.getInstance(algorithmName);
49 keyAgreement.init(encryptKey);
54 keyAgreement.doPhase(decryptKey, true);
60 Assert.assertNotNull("generated secret is null", keyAgreement
AlgorithmParameterKeyAgreementHelper.java 24 import javax.crypto.KeyAgreement;
49 KeyAgreement keyAgreement = null;
51 keyAgreement = KeyAgreement.getInstance(algorithmName);
57 keyAgreement.init(keyPair.getPrivate());
62 keyAgreement.doPhase(keyPair.getPublic(), true);
68 Assert.assertNotNull("generated secret is null", keyAgreement
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java 38 import javax.crypto.KeyAgreement;
52 * Tests for KeyAgreement constructor and methods
57 public static final String srvKeyAgreement = "KeyAgreement";
67 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement";
97 private KeyAgreement[] createKAs() throws Exception {
102 KeyAgreement[] ka = new KeyAgreement[3];
103 ka[0] = KeyAgreement.getInstance(defaultAlgorithm);
104 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider);
105 ka[2] = KeyAgreement.getInstance(defaultAlgorithm
    [all...]
  /external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreement_Impl1Test.java 28 import javax.crypto.KeyAgreement;
37 * Tests for KeyAgreement constructor and methods
43 public static final String srvKeyAgreement = "KeyAgreement";
52 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement";
62 * Test for <code>KeyAgreement</code> constructor Assertion: returns
63 * KeyAgreement object
72 KeyAgreement keyA = new myKeyAgreement(spi, defaultProvider,
92 * Additional class for KeyAgreement constructor verification
95 class myKeyAgreement extends KeyAgreement {
KeyAgreement_ImplTest.java 35 import javax.crypto.KeyAgreement;
43 * Tests for KeyAgreement class constructors and methods
49 private static final String srvKeyAgreement = "KeyAgreement";
85 protected void checkResult(KeyAgreement keyAgr)
125 * returns KeyAgreement object
131 KeyAgreement.getInstance(null);
138 KeyAgreement.getInstance(invalidValues[i]);
144 KeyAgreement keyAgr;
146 keyAgr = KeyAgreement.getInstance(validValues[i]);
161 * returns KeyAgreement objec
    [all...]
  /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java 36 import javax.crypto.KeyAgreement;
49 * Tests for KeyAgreement constructor and methods
55 public static final String srvKeyAgreement = "KeyAgreement";
65 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement";
95 private KeyAgreement[] createKAs() throws Exception {
100 KeyAgreement[] ka = new KeyAgreement[3];
101 ka[0] = KeyAgreement.getInstance(defaultAlgorithm);
102 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider);
103 ka[2] = KeyAgreement.getInstance(defaultAlgorithm
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/
DefaultJcaJceHelper.java 14 import javax.crypto.KeyAgreement;
36 public KeyAgreement createKeyAgreement(String algorithm)
39 return KeyAgreement.getInstance(algorithm);
NamedJcaJceHelper.java 15 import javax.crypto.KeyAgreement;
44 public KeyAgreement createKeyAgreement(String algorithm)
47 return KeyAgreement.getInstance(algorithm, providerName);
ProviderJcaJceHelper.java 15 import javax.crypto.KeyAgreement;
44 public KeyAgreement createKeyAgreement(String algorithm)
47 return KeyAgreement.getInstance(algorithm, provider);
JcaJceHelper.java 15 import javax.crypto.KeyAgreement;
30 KeyAgreement createKeyAgreement(String algorithm)
  /libcore/luni/src/main/java/javax/crypto/
KeyAgreement.java 36 public class KeyAgreement {
39 private static final Engine ENGINE = new Engine("KeyAgreement");
54 * Creates a new {@code KeyAgreement} instance.
59 * the provider providing this KeyAgreement.
63 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider,
80 * Returns the provider for this {@code KeyAgreement} instance.
82 * @return the provider for this {@code KeyAgreement} instance.
89 * Creates a new {@code KeyAgreement} for the specified algorithm.
99 public static final KeyAgreement getInstance(String algorithm)
105 return new KeyAgreement((KeyAgreementSpi) sap.spi, sap.provider, algorithm)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/
DH.java 22 provider.addAlgorithm("KeyAgreement.DH", PREFIX + "KeyAgreementSpi");
23 provider.addAlgorithm("Alg.Alias.KeyAgreement.DIFFIEHELLMAN", "DH");
EC.java 25 provider.addAlgorithm("KeyAgreement.ECDH", PREFIX + "KeyAgreementSpi$DH");
27 // provider.addAlgorithm("KeyAgreement.ECDHC", PREFIX + "KeyAgreementSpi$DHC");
28 // provider.addAlgorithm("KeyAgreement.ECMQV", PREFIX + "KeyAgreementSpi$MQV");
29 // provider.addAlgorithm("KeyAgreement." + X9ObjectIdentifiers.dhSinglePass_stdDH_sha1kdf_scheme, PREFIX + "KeyAgreementSpi$DHwithSHA1KDF");
30 // provider.addAlgorithm("KeyAgreement." + X9ObjectIdentifiers.mqvSinglePass_sha1kdf_scheme, PREFIX + "KeyAgreementSpi$MQVwithSHA1KDF");
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java 28 import javax.crypto.KeyAgreement;
55 KeyAgreement ka = KeyAgreement.getInstance("DH");
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
KeyUsage.java 17 * keyAgreement (4),
31 public static final int keyAgreement = (1 << 3);
  /libcore/luni/src/main/java/org/apache/harmony/security/x509/
KeyUsage.java 37 * keyAgreement (4),
54 "keyAgreement",
  /external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
MyKeyAgreementSpi.java 37 * and KeyAgreement functionality
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
MyKeyAgreementSpi.java 38 * and KeyAgreement functionality
  /libcore/crypto/src/main/java/org/conscrypt/
JSSEProvider.java 95 * KeyAgreement DiffieHellman or DH
ClientHandshakeImpl.java 32 import javax.crypto.KeyAgreement;
481 KeyAgreement agreement = KeyAgreement.getInstance("DH");
ServerHandshakeImpl.java 34 import javax.crypto.KeyAgreement;
238 KeyAgreement agreement = KeyAgreement.getInstance("DH");
  /libcore/support/src/test/java/libcore/java/security/
StandardNames.java 170 provide("KeyAgreement", "DiffieHellman");
289 provide("KeyAgreement", "DH");
290 provide("KeyAgreement", "ECDH");
342 unprovide("KeyAgreement", "DiffieHellman");
343 provide("KeyAgreement", "DH");
483 provide("KeyAgreement", "ECDH");
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyAgreementSpi.java 84 throw new InvalidKeyException("DHPublicKey not for this KeyAgreement!");
  /external/chromium_org/third_party/openssl/openssl/crypto/x509v3/
v3_bitst.c 81 {4, "Key Agreement", "keyAgreement"},

Completed in 382 milliseconds

1 2 3