Searched refs:kaAlgo (Results 1 – 5 of 5) sorted by relevance
/libcore/ojluni/src/test/java/security/KeyAgreement/ |
D | NegativeTest.java | 72 String kaAlgo = "DiffieHellman"; in testDHNegative() local 78 testInvalidKeyLen(provider, kaAlgo, kpgAlgo, kpgInit); in testDHNegative() 79 testInvalidKpgAlgo(provider, kaAlgo, keySize); in testDHNegative() 81 testInvalidProvider(kaAlgo, kpgAlgo, keySize); in testDHNegative() 86 String kaAlgo = "ECDH"; in testECDHNegative() local 92 testInvalidKeyLen(provider, kaAlgo, kpgAlgo, kpgInit); in testECDHNegative() 93 testInvalidKpgAlgo(provider, kaAlgo, keySize); in testECDHNegative() 95 testInvalidProvider(kaAlgo, kpgAlgo, keySize); in testECDHNegative() 179 private static void testInvalidKeyLen(String provider, String kaAlgo, in testInvalidKeyLen() argument 184 startKeyAgreement(provider, kaAlgo, kpgAlgo, keySize); in testInvalidKeyLen() [all …]
|
D | KeySpecTest.java | 127 private static void testKeySpecs(String provider, String kaAlgo, in testKeySpecs() argument 149 if (!kaAlgo.equals("DiffieHellman")) { in testKeySpecs() 154 if (!Arrays.equals(getKeyAgreementSecret(provider, kaAlgo, in testKeySpecs() 156 getKeyAgreementSecret(provider, kaAlgo, in testKeySpecs() 167 private static void testEncodedKeySpecs(String provider, String kaAlgo, in testEncodedKeySpecs() argument 184 if (!kaAlgo.equals("DiffieHellman")) { in testEncodedKeySpecs() 189 if (!Arrays.equals(getKeyAgreementSecret(provider, kaAlgo, in testEncodedKeySpecs() 191 getKeyAgreementSecret(provider, kaAlgo, pubKey, priKey))) { in testEncodedKeySpecs() 239 private static byte[] getKeyAgreementSecret(String provider, String kaAlgo, in getKeyAgreementSecret() argument 242 KeyAgreement ka = KeyAgreement.getInstance(kaAlgo, provider); in getKeyAgreementSecret()
|
D | MultiThreadTest.java | 111 private void runTest(String provider, String kaAlgo, KeyPairGenerator kpg) in runTest() argument 131 testKeyAgreement(provider, kaAlgo, kpg); in runTest() 153 private static void testKeyAgreement(String provider, String kaAlgo, in testKeyAgreement() argument 159 KeyAgreement ka1 = KeyAgreement.getInstance(kaAlgo, provider); in testKeyAgreement() 163 KeyAgreement ka2 = KeyAgreement.getInstance(kaAlgo, provider); in testKeyAgreement()
|
D | KeyAgreementTest.java | 112 private static void testKeyAgreement(String provider, String kaAlgo, in testKeyAgreement() argument 121 KeyAgreement ka1 = KeyAgreement.getInstance(kaAlgo); in testKeyAgreement() 127 KeyAgreement ka2 = KeyAgreement.getInstance(kaAlgo, provider); in testKeyAgreement() 133 byte[] secret2 = "DiffieHellman".equals(kaAlgo) in testKeyAgreement()
|
D | KeySizeTest.java | 106 private static void testKeyAgreement(String provider, String kaAlgo, in testKeyAgreement() argument 115 KeyAgreement ka = KeyAgreement.getInstance(kaAlgo, provider); in testKeyAgreement()
|