Home
last modified time | relevance | path

Searched refs:getKeyAgreement (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/javax/crypto/
DECDHKeyAgreementTest.java135 assertEquals("ECDH", getKeyAgreement(provider).getAlgorithm()); in testGetAlgorithm()
143 assertSame(provider, getKeyAgreement(provider).getProvider()); in testGetProvider()
151 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withNullPrivateKey()
163 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withUnsupportedPrivateKeyType()
176 getKeyAgreement(provider).init(KAT_PRIVATE_KEY1, new ECGenParameterSpec("prime256v1")); in testInit_withUnsupportedAlgorithmParameterSpec()
187 getKeyAgreement(provider).doPhase(KAT_PUBLIC_KEY1, true); in testDoPhase_whenNotInitialized()
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()
[all …]
/libcore/luni/src/main/java/javax/crypto/
DKeyAgreement.java114 return getKeyAgreement(algorithm, null); in getInstance()
145 return getKeyAgreement(algorithm, impProvider); in getInstance()
172 return getKeyAgreement(algorithm, provider); in getInstance()
175 private static KeyAgreement getKeyAgreement(String algorithm, Provider provider) in getKeyAgreement() method in KeyAgreement