Searched refs:KeyAgreement (Results 1 – 6 of 6) sorted by relevance
41 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 …]
43 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 …]
24 import javax.crypto.KeyAgreement;41 KeyAgreement keyAgreement = null; in test()43 keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
24 import javax.crypto.KeyAgreement;49 KeyAgreement keyAgreement = null; in test()51 keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
38 public class KeyAgreement { class76 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, in KeyAgreement() method in KeyAgreement113 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()
28 import javax.crypto.KeyAgreement;55 KeyAgreement ka = KeyAgreement.getInstance("DH"); in getSecretKey()