Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/javax/crypto/
DSecretKeyFactoryTest.java56 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 …]
DECDHKeyAgreementTest.java127 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()
DMacTest.java125 SecretKey secretKey = secretKeyFactory.generateSecret(pbeKeySpec); in test_PBEWITHHMACSHA_Variants()
DCipherTest.java276 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/
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/ojluni/src/main/java/javax/crypto/
DKeyAgreement.java577 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
DSecretKeyFactory.java511 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/
DAlgorithmParameterKeyAgreementHelper.java44 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
DKeyAgreementHelper.java43 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java210 Key key = skf.generateSecret(pbeKS); in test_encryptWithAlgorithmParameters()
244 Key key = skf.generateSecret(new PBEKeySpec("aaaaa".toCharArray())); in test_encryptWithNoSalt()