Home
last modified time | relevance | path

Searched refs:KeyAgreement (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java41 import javax.crypto.KeyAgreement;
98 private KeyAgreement[] createKAs() throws Exception { in createKAs()
103 KeyAgreement[] ka = new KeyAgreement[3]; in createKAs()
104 ka[0] = KeyAgreement.getInstance(defaultAlgorithm); in createKAs()
105 ka[1] = KeyAgreement.getInstance(defaultAlgorithm, defaultProvider); in createKAs()
106 ka[2] = KeyAgreement.getInstance(defaultAlgorithm, in createKAs()
122 KeyAgreement.getInstance(null); in testGetInstanceString01()
129 KeyAgreement.getInstance(invalidValues[i]); in testGetInstanceString01()
145 KeyAgreement keyA; in testGetInstanceString02()
147 keyA = KeyAgreement.getInstance(validValues[i]); in testGetInstanceString02()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/
DECDHKeyAgreementTest.java43 import javax.crypto.KeyAgreement;
151 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withNullPrivateKey()
163 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withUnsupportedPrivateKeyType()
197 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhaseReturnsNull()
207 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhase_withPhaseWhichIsNotLast()
220 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhase_withNullKey()
233 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhase_withInvalidKeyType()
246 KeyAgreement keyAgreement = getKeyAgreement(provider); in testGenerateSecret_withNullOutputBuffer()
260 KeyAgreement keyAgreement = getKeyAgreement(provider); in testGenerateSecret_withBufferOfTheRightSize()
275 KeyAgreement keyAgreement = getKeyAgreement(provider); in testGenerateSecret_withLargerThatNeededBuffer()
[all …]
/libcore/support/src/test/java/tests/security/
DKeyAgreementHelper.java24 import javax.crypto.KeyAgreement;
41 KeyAgreement keyAgreement = null; in test()
43 keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
DAlgorithmParameterKeyAgreementHelper.java24 import javax.crypto.KeyAgreement;
49 KeyAgreement keyAgreement = null; in test()
51 keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
/libcore/luni/src/main/java/javax/crypto/
DKeyAgreement.java38 public class KeyAgreement { class
76 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, in KeyAgreement() method in KeyAgreement
113 public static final KeyAgreement getInstance(String algorithm) throws NoSuchAlgorithmException { in getInstance()
136 public static final KeyAgreement getInstance(String algorithm, String provider) in getInstance()
167 public static final KeyAgreement getInstance(String algorithm, Provider provider) in getInstance()
175 private static KeyAgreement getKeyAgreement(String algorithm, Provider provider) in getKeyAgreement()
189 return new KeyAgreement(null, provider, algorithm); in getKeyAgreement()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java28 import javax.crypto.KeyAgreement;
55 KeyAgreement ka = KeyAgreement.getInstance("DH"); in getSecretKey()