/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | SecretKeyFactoryTest.java | 54 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 …]
|
D | ECDHKeyAgreementTest.java | 125 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()
|
D | CipherTest.java | 252 key = skf.generateSecret(new PBEKeySpec("secret".toCharArray())); in getEncryptKey()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyAgreementTest.java | 327 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 …]
|
D | SecretKeyFactoryTest.java | 132 assertNull("Incorrect result", secKF.generateSecret(null)); in testSecretKeyFactory01() 366 skF[i].generateSecret(null); in testSecretKeyFactory10() 371 secKey = skF[i].generateSecret(ks); in testSecretKeyFactory10()
|
D | CipherTest.java | 330 Key k = skf.generateSecret(keySpec); in test_update$BII() 388 Key k = skf.generateSecret(keySpec); in test_doFinal()
|
D | EncryptedPrivateKeyInfoTest.java | 1644 k = skf.generateSecret(ks); in TestDataGenerator()
|
/libcore/luni/src/main/java/javax/crypto/ |
D | KeyAgreement.java | 360 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
|
D | SecretKeyFactory.java | 185 public final SecretKey generateSecret(KeySpec keySpec) in generateSecret() method in SecretKeyFactory
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | SecretKeyFactoryThread.java | 37 skf.generateSecret(ks); in test()
|
D | CipherPBEThread.java | 44 SecretKey key = skf.generateSecret(keySpec); in crypt()
|
D | KeyAgreementThread.java | 59 return ka.generateSecret(); in getSecretKey()
|
/libcore/support/src/test/java/tests/security/ |
D | KeyAgreementHelper.java | 61 .generateSecret()); in test()
|
D | AlgorithmParameterKeyAgreementHelper.java | 69 .generateSecret()); in test()
|