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

1 2

  /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...]
  /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...]
KeyAgreementSpi.java 29 * {@code KeyAgreement} class.
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/
EC.java 20 put("KeyAgreement.ECDH", "org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement$DH");
22 // put("KeyAgreement.ECDHC", "org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement$DHC");
23 // put("KeyAgreement.ECMQV", "org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement$MQV");
24 // put("KeyAgreement." + X9ObjectIdentifiers.dhSinglePass_stdDH_sha1kdf_scheme, "org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement$DHwithSHA1KDF");
25 // put("KeyAgreement." + X9ObjectIdentifiers.mqvSinglePass_sha1kdf_scheme, "org.bouncycastle.jce.provider.asymmetric.ec.KeyAgreement$MQVwithSHA1KDF")
    [all...]
  /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/luni/src/test/java/libcore/javax/crypto/
CipherTest.java 35 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement, false, true, false, true);
41 // to keyAgreement. There is not a *_MODE option that
47 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.encipherOnly,
49 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.decipherOnly,
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/
KeyUsage.java 15 * keyAgreement (4),
29 public static final int keyAgreement = (1 << 3);
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/
KeyAgreement.java 54 public class KeyAgreement
91 protected KeyAgreement(
293 extends KeyAgreement
303 // extends KeyAgreement
312 // extends KeyAgreement
321 // extends KeyAgreement
330 // extends KeyAgreement
  /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/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
JSSEProvider.java 95 * KeyAgreement DiffieHellman or DH
ClientHandshakeImpl.java 34 import javax.crypto.KeyAgreement;
445 KeyAgreement agreement = KeyAgreement.getInstance("DH");
ServerHandshakeImpl.java 35 import javax.crypto.KeyAgreement;
239 KeyAgreement agreement = KeyAgreement.getInstance("DH");
  /libcore/support/src/test/java/libcore/java/security/
StandardNames.java 139 provide("KeyAgreement", "DiffieHellman");
257 provide("KeyAgreement", "DH");
258 provide("KeyAgreement", "ECDH");
296 unprovide("KeyAgreement", "DiffieHellman");
297 provide("KeyAgreement", "DH");
432 provide("KeyAgreement", "ECDH");
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
JCEDHKeyAgreement.java 86 throw new InvalidKeyException("DHPublicKey not for this KeyAgreement!");
  /external/openssl/crypto/x509v3/
v3_bitst.c 81 {4, "Key Agreement", "keyAgreement"},
  /external/wpa_supplicant_6/wpa_supplicant/src/tls/
tlsv1_common.c 173 * encryption, as described above. The keyAgreement bit must be
  /libcore/expectations/
brokentests.txt 208 name: "com.sun.crypto.provider.KeyAgreement.DHGenSecretKey",
215 "com.sun.crypto.provider.KeyAgreement.DHGenSharedSecret",
216 "com.sun.crypto.provider.KeyAgreement.DHKeyAgreement3",
217 "com.sun.crypto.provider.KeyAgreement.DHKeyFactory",
218 "com.sun.crypto.provider.KeyAgreement.DHKeyGenSpeed"
226 "com.sun.crypto.provider.KeyAgreement.TestExponentSize",
358 name: "com.sun.crypto.provider.KeyAgreement.DHKeyAgreement2",
    [all...]
  /external/wpa_supplicant_8/src/tls/
tlsv1_common.c 177 * encryption, as described above. The keyAgreement bit must be

Completed in 856 milliseconds

1 2