Home
last modified time | relevance | path

Searched refs:generateSecret (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/javax/crypto/
DSecretKeyFactoryTest.java54 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
60 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
66 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
75 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
81 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
87 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
94 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
101 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
107 factory.generateSecret(ks); in test_PBKDF2_required_parameters()
198 SecretKey key = factory.generateSecret(ks); in test_PBKDF2_8BIT()
[all …]
DECDHKeyAgreementTest.java125 KAT_SECRET, generateSecret(keyAgreementProvider, privateKey1, publicKey2))); in testKnownAnswer()
127 KAT_SECRET, generateSecret(keyAgreementProvider, privateKey2, publicKey1))); in testKnownAnswer()
250 keyAgreement.generateSecret(null, 0); in testGenerateSecret_withNullOutputBuffer()
265 int secretLengthBytes = keyAgreement.generateSecret(buffer, 0); in testGenerateSecret_withBufferOfTheRightSize()
284 int secretLengthBytes = keyAgreement.generateSecret(buffer, 1); in testGenerateSecret_withLargerThatNeededBuffer()
304 keyAgreement.generateSecret(new byte[1024], 1020); in testGenerateSecret_withSmallerThanNeededBuffer()
318 byte[] secret = keyAgreement.generateSecret(); in testGenerateSecret_withoutBuffer()
331 SecretKey key = keyAgreement.generateSecret("AES"); in testGenerateSecret_withAlgorithm()
420 private static byte[] generateSecret( in generateSecret() method in ECDHKeyAgreementTest
426 return keyAgreement.generateSecret(); in generateSecret()
DCipherTest.java252 key = skf.generateSecret(new PBEKeySpec("secret".toCharArray())); in getEncryptKey()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java327 bb = kAgs[i].generateSecret(); in testGenerateSecret03()
331 kAgs[i].generateSecret(bb1, 9); in testGenerateSecret03()
334 kAgs[i].generateSecret("DES"); in testGenerateSecret03()
497 bbRes1 = kAgs[i].generateSecret(); in testInit03()
500 bbRes2 = kAgs[i].generateSecret(); in testInit03()
509 bbRes3 = kAgs[i].generateSecret(); in testInit03()
546 bbRes1 = kAgs[i].generateSecret(); in testInit04()
549 bbRes2 = kAgs[i].generateSecret(); in testInit04()
558 bbRes3 = kAgs[i].generateSecret(); in testInit04()
622 ka.generateSecret(bb1, 0); in test_generateSecret$BI()
[all …]
DSecretKeyFactoryTest.java132 assertNull("Incorrect result", secKF.generateSecret(null)); in testSecretKeyFactory01()
366 skF[i].generateSecret(null); in testSecretKeyFactory10()
371 secKey = skF[i].generateSecret(ks); in testSecretKeyFactory10()
DCipherTest.java330 Key k = skf.generateSecret(keySpec); in test_update$BII()
388 Key k = skf.generateSecret(keySpec); in test_doFinal()
DEncryptedPrivateKeyInfoTest.java1644 k = skf.generateSecret(ks); in TestDataGenerator()
/libcore/luni/src/main/java/javax/crypto/
DKeyAgreement.java360 public final byte[] generateSecret() throws IllegalStateException { in generateSecret() method in KeyAgreement
378 public final int generateSecret(byte[] sharedSecret, int offset) in generateSecret() method in KeyAgreement
399 public final SecretKey generateSecret(String algorithm) in generateSecret() method in KeyAgreement
DSecretKeyFactory.java185 public final SecretKey generateSecret(KeySpec keySpec) in generateSecret() method in SecretKeyFactory
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DSecretKeyFactoryThread.java37 skf.generateSecret(ks); in test()
DCipherPBEThread.java44 SecretKey key = skf.generateSecret(keySpec); in crypt()
DKeyAgreementThread.java59 return ka.generateSecret(); in getSecretKey()
/libcore/support/src/test/java/tests/security/
DKeyAgreementHelper.java61 .generateSecret()); in test()
DAlgorithmParameterKeyAgreementHelper.java69 .generateSecret()); in test()