/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | SecretKeyFactoryTest.java | 56 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 62 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 68 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 77 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 83 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 89 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 96 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 103 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 109 factory.generateSecret(ks); in test_PBKDF2_required_parameters() 200 SecretKey key = factory.generateSecret(ks); in test_PBKDF2_8BIT() [all …]
|
D | ECDHKeyAgreementTest.java | 127 KAT_SECRET, generateSecret(keyAgreementProvider, privateKey1, publicKey2))); in testKnownAnswer() 129 KAT_SECRET, generateSecret(keyAgreementProvider, privateKey2, publicKey1))); in testKnownAnswer() 252 keyAgreement.generateSecret(null, 0); in testGenerateSecret_withNullOutputBuffer() 267 int secretLengthBytes = keyAgreement.generateSecret(buffer, 0); in testGenerateSecret_withBufferOfTheRightSize() 286 int secretLengthBytes = keyAgreement.generateSecret(buffer, 1); in testGenerateSecret_withLargerThatNeededBuffer() 306 keyAgreement.generateSecret(new byte[1024], 1020); in testGenerateSecret_withSmallerThanNeededBuffer() 320 byte[] secret = keyAgreement.generateSecret(); in testGenerateSecret_withoutBuffer() 333 SecretKey key = keyAgreement.generateSecret("AES"); in testGenerateSecret_withAlgorithm() 435 private static byte[] generateSecret( in generateSecret() method in ECDHKeyAgreementTest 441 return keyAgreement.generateSecret(); in generateSecret()
|
D | MacTest.java | 125 SecretKey secretKey = secretKeyFactory.generateSecret(pbeKeySpec); in test_PBEWITHHMACSHA_Variants()
|
D | CipherTest.java | 276 key = skf.generateSecret(new PBEKeySpec("secret".toCharArray())); in getEncryptKey() 4896 SecretKey secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV() 4904 secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV() 4931 SecretKey secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV() 4937 secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV()
|
/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/ojluni/src/main/java/javax/crypto/ |
D | KeyAgreement.java | 577 public final byte[] generateSecret() throws IllegalStateException { in generateSecret() method in KeyAgreement 607 public final int generateSecret(byte[] sharedSecret, int offset) in generateSecret() method in KeyAgreement 636 public final SecretKey generateSecret(String algorithm) in generateSecret() method in KeyAgreement
|
D | SecretKeyFactory.java | 511 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 | AlgorithmParameterKeyAgreementHelper.java | 44 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
|
D | KeyAgreementHelper.java | 43 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
|
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
D | AlgorithmParametersTestPBES2.java | 210 Key key = skf.generateSecret(pbeKS); in test_encryptWithAlgorithmParameters() 244 Key key = skf.generateSecret(new PBEKeySpec("aaaaa".toCharArray())); in test_encryptWithNoSalt()
|