Home
last modified time | relevance | path

Searched refs:generateSecret (Results 1 – 22 of 22) 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 …]
DMacTest.java135 SecretKey secretKey = secretKeyFactory.generateSecret(pbeKeySpec); in test_PBEWITHHMACSHA_Variants()
DCipherTest.java638 SecretKey secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV()
671 SecretKey secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV()
677 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()
369 skF[i].generateSecret(null); in testSecretKeyFactory10()
374 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/annotations/flagged_api/javax/crypto/
DKeyAgreement.annotated.java55 public final byte[] generateSecret() throws java.lang.IllegalStateException { throw new RuntimeExce… in generateSecret() method in KeyAgreement
57 public final int generateSecret(byte[] sharedSecret, int offset) throws java.lang.IllegalStateExcep… in generateSecret() method in KeyAgreement
59 public final javax.crypto.SecretKey generateSecret(java.lang.String algorithm) throws java.lang.Ill… in generateSecret() method in KeyAgreement
/libcore/ojluni/annotations/mmodule/javax/crypto/
DKeyAgreement.annotated.java63 public final byte[] generateSecret() throws java.lang.IllegalStateException { throw new RuntimeExce… in generateSecret() method in KeyAgreement
65 public final int generateSecret(byte[] sharedSecret, int offset) throws java.lang.IllegalStateExcep… in generateSecret() method in KeyAgreement
67 public final javax.crypto.SecretKey generateSecret(java.lang.String algorithm) throws java.lang.Ill… in generateSecret() method in KeyAgreement
/libcore/ojluni/src/test/java/security/KeyAgreement/
DKeyAgreementTest.java124 byte[] secret1 = ka1.generateSecret(); in testKeyAgreement()
134 ? ka2.generateSecret("AES").getEncoded() : ka2.generateSecret(); in testKeyAgreement()
DMultiThreadTest.java162 byte[] secret1 = ka1.generateSecret(); in testKeyAgreement()
166 byte[] secret2 = ka2.generateSecret(); in testKeyAgreement()
DKeySpecTest.java245 return ka.generateSecret(); in getKeyAgreementSecret()
DKeySizeTest.java118 ka.generateSecret(); in testKeyAgreement()
DNegativeTest.java350 ka.generateSecret(); in startKeyAgreement()
/libcore/ojluni/src/main/java/javax/crypto/
DKeyAgreement.java629 public final byte[] generateSecret() throws IllegalStateException { in generateSecret() method in KeyAgreement
659 public final int generateSecret(byte[] sharedSecret, int offset) in generateSecret() method in KeyAgreement
688 public final SecretKey generateSecret(String algorithm) in generateSecret() method in KeyAgreement
DSecretKeyFactory.java515 public final SecretKey generateSecret(KeySpec keySpec) in generateSecret() method in SecretKeyFactory
/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()
/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/luni/src/test/java/libcore/java/security/
DKeyAgreementHelper.java41 Assert.assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
/libcore/api/
Dcurrent.txt19059 method public final byte[] generateSecret() throws java.lang.IllegalStateException;
19060 …method public final int generateSecret(byte[], int) throws java.lang.IllegalStateException, javax.…
19061 …method public final javax.crypto.SecretKey generateSecret(String) throws java.lang.IllegalStateExc…
19164 …method public final javax.crypto.SecretKey generateSecret(java.security.spec.KeySpec) throws java.…