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

1 2

  /libcore/luni/src/test/java/libcore/javax/crypto/
KeyAgreementTest.java 23 import javax.crypto.KeyAgreement;
41 put("KeyAgreement.FOO", MockKeyAgreementSpi.AllKeyTypes.class.getName());
46 KeyAgreement c = KeyAgreement.getInstance("FOO", mockProvider);
56 put("KeyAgreement.FOO", MockKeyAgreementSpi.AllKeyTypes.class.getName());
57 put("KeyAgreement.FOO SupportedKeyClasses", "none");
63 KeyAgreement c = KeyAgreement.getInstance("FOO", mockProvider);
80 put("KeyAgreement.FOO", MockKeyAgreementSpi.AllKeyTypes.class.getName());
81 put("KeyAgreement.FOO SupportedKeyClasses", "none")
    [all...]
ECDHKeyAgreementTest.java 45 import javax.crypto.KeyAgreement;
50 * Tests for all registered Elliptic Curve Diffie-Hellman {@link KeyAgreement} providers.
94 * of: first key pair, second key pair, and the {@code KeyAgreement}. This is to check that
95 * the {@code KeyAgreement} instances work with keys of all registered providers.
153 KeyAgreement keyAgreement = getKeyAgreement(provider);
155 keyAgreement.init(null);
165 KeyAgreement keyAgreement = getKeyAgreement(provider);
167 keyAgreement.init(KAT_PUBLIC_KEY1)
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java 41 import javax.crypto.KeyAgreement;
53 * Tests for KeyAgreement constructor and methods
58 public static final String srvKeyAgreement = "KeyAgreement";
68 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement";
98 private KeyAgreement[] createKAs() throws Exception {
103 KeyAgreement[] ka = new KeyAgreement[3];
104 ka[0] = KeyAgreement.getInstance(defaultAlgorithm);
105 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider);
106 ka[2] = KeyAgreement.getInstance(defaultAlgorithm
    [all...]
  /libcore/support/src/test/java/tests/security/
AlgorithmParameterKeyAgreementHelper.java 24 import javax.crypto.KeyAgreement;
41 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName);
42 keyAgreement.init(keyPair.getPrivate());
43 keyAgreement.doPhase(keyPair.getPublic(), true);
44 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret());
KeyAgreementHelper.java 24 import javax.crypto.KeyAgreement;
40 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName);
41 keyAgreement.init(encryptKey);
42 keyAgreement.doPhase(decryptKey, true);
43 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret());
  /external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreement_ImplTest.java 35 import javax.crypto.KeyAgreement;
43 * Tests for KeyAgreement class constructors and methods
48 private static final String srvKeyAgreement = "KeyAgreement";
84 protected void checkResult(KeyAgreement keyAgr)
124 * returns KeyAgreement object
130 KeyAgreement.getInstance(null);
137 KeyAgreement.getInstance(invalidValues[i]);
143 KeyAgreement keyAgr;
145 keyAgr = KeyAgreement.getInstance(validValues[i]);
161 * returns KeyAgreement objec
    [all...]
KeyAgreement_Impl1Test.java 28 import javax.crypto.KeyAgreement;
37 * Tests for KeyAgreement constructor and methods
42 public static final String srvKeyAgreement = "KeyAgreement";
51 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement";
61 * Test for <code>KeyAgreement</code> constructor Assertion: returns
62 * KeyAgreement object
71 KeyAgreement keyA = new myKeyAgreement(spi, defaultProvider,
91 * Additional class for KeyAgreement constructor verification
94 class myKeyAgreement extends KeyAgreement {
  /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
54 public static final String srvKeyAgreement = "KeyAgreement";
64 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement";
94 private KeyAgreement[] createKAs() throws Exception {
99 KeyAgreement[] ka = new KeyAgreement[3];
100 ka[0] = KeyAgreement.getInstance(defaultAlgorithm);
101 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider);
102 ka[2] = KeyAgreement.getInstance(defaultAlgorithm
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DefaultJcaJceHelper.java 14 import javax.crypto.KeyAgreement;
40 public KeyAgreement createKeyAgreement(String algorithm)
43 return KeyAgreement.getInstance(algorithm);
JcaJceHelper.java 15 import javax.crypto.KeyAgreement;
33 KeyAgreement createKeyAgreement(String algorithm)
NamedJcaJceHelper.java 15 import javax.crypto.KeyAgreement;
47 public KeyAgreement createKeyAgreement(String algorithm)
50 return KeyAgreement.getInstance(algorithm, providerName);
ProviderJcaJceHelper.java 15 import javax.crypto.KeyAgreement;
47 public KeyAgreement createKeyAgreement(String algorithm)
50 return KeyAgreement.getInstance(algorithm, provider);
  /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");
  /libcore/ojluni/src/main/java/javax/crypto/
KeyAgreement.java 58 * <p> Android provides the following <code>KeyAgreement</code> algorithms:
79 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyAgreement">
80 * KeyAgreement section</a> of the
90 public class KeyAgreement {
93 Debug.getInstance("jca", "KeyAgreement");
107 * Creates a KeyAgreement object.
113 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider,
121 private KeyAgreement(String algorithm) {
127 * Returns the algorithm name of this <code>KeyAgreement</code> object.
131 * <code>KeyAgreement</code> object
    [all...]
  /prebuilts/tools/common/m2/repository/org/bouncycastle/bcprov-jdk16/1.46/
bcprov-jdk16-1.46.jar 
  /external/google-tv-pairing-protocol/java/jar/
bcprov-jdk15-143.jar 
  /libcore/
openjdk_java_files.mk     [all...]
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/16/
android.jar 
  /prebuilts/sdk/17/
android.jar 
  /prebuilts/sdk/22/
android.jar 
  /prebuilts/sdk/23/
android.jar 
  /prebuilts/sdk/24/
android.jar 

Completed in 162 milliseconds

1 2