Home
last modified time | relevance | path

Searched refs:algorithmName (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java46 private static final String algorithmName[] = { field in DigestInputStreamTest
81 for (int i=0; i<algorithmName.length; i++) { in testDigestInputStream01()
83 MessageDigest md = MessageDigest.getInstance(algorithmName[i]); in testDigestInputStream01()
114 for (int ii=0; ii<algorithmName.length; ii++) { in testRead01()
116 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); in testRead01()
127 MDGoldenData.getDigest(algorithmName[ii]))); in testRead01()
147 for (int ii=0; ii<algorithmName.length; ii++) { in testRead02()
149 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); in testRead02()
162 MDGoldenData.getDigest(algorithmName[ii]))); in testRead02()
182 for (int ii=0; ii<algorithmName.length; ii++) { in testRead03()
[all …]
DDigestOutputStreamTest.java46 private static final String algorithmName[] = { field in DigestOutputStreamTest
145 for (int k=0; k<algorithmName.length; k++) { in testWriteint01()
147 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); in testWriteint01()
157 MDGoldenData.getDigest(algorithmName[k]))); in testWriteint01()
177 for (int k=0; k<algorithmName.length; k++) { in testWriteint02()
179 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); in testWriteint02()
194 MDGoldenData.getDigest(algorithmName[k]+"_NU"))); in testWriteint02()
211 for (int k=0; k<algorithmName.length; k++) { in testWriteint03()
213 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); in testWriteint03()
284 for (int k=0; k<algorithmName.length; k++) { in test_write$BII_1()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java42 private final String algorithmName; field in TestKeyPair
578 public TestKeyPair(String algorithmName) throws in TestKeyPair() argument
580 this.algorithmName = algorithmName; in TestKeyPair()
581 if (!privateKeyEncoding.containsKey(this.algorithmName)) { in TestKeyPair()
583 this.algorithmName); in TestKeyPair()
585 kf = KeyFactory.getInstance(this.algorithmName); in TestKeyPair()
592 (byte[])publicKeyEncoding.get(algorithmName))); in getPublic()
599 (byte[])privateKeyEncoding.get(algorithmName))); in getPrivate()
/libcore/luni/src/test/java/tests/security/
DCertificateFactoryTest.java26 private final String algorithmName; field in CertificateFactoryTest
30 public CertificateFactoryTest(String algorithmName, byte[] certificateData) { in CertificateFactoryTest() argument
31 this.algorithmName = algorithmName; in CertificateFactoryTest()
41 algorithmName); in testCertificateFactory()
DCertPathValidatorTest.java26 private final String algorithmName; field in CertPathValidatorTest
29 public CertPathValidatorTest(String algorithmName) { in CertPathValidatorTest() argument
30 this.algorithmName = algorithmName; in CertPathValidatorTest()
39 algorithmName); in testCertPathValidator()
DCertPathBuilderTest.java25 private final String algorithmName; field in CertPathBuilderTest
28 public CertPathBuilderTest(String algorithmName) { in CertPathBuilderTest() argument
29 this.algorithmName = algorithmName; in CertPathBuilderTest()
44 algorithmName); in testCertPathBuilder()
DSecureRandomTest.java29 private final String algorithmName; field in SecureRandomTest
34 this.algorithmName = name; in SecureRandomTest()
44 secureRandom1 = SecureRandom.getInstance(algorithmName); in testSecureRandom()
51 secureRandom2 = SecureRandom.getInstance(algorithmName); in testSecureRandom()
77 final SecureRandom secureRandom = SecureRandom.getInstance(algorithmName); in testSecureRandomThreadSafety()
/libcore/luni/src/test/java/libcore/java/security/
DKeyAgreementHelper.java27 private final String algorithmName; field in KeyAgreementHelper
29 KeyAgreementHelper(String algorithmName) { in KeyAgreementHelper() argument
30 this.algorithmName = algorithmName; in KeyAgreementHelper()
38 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java205 String algorithmName = "PBEWithHmacSHA" + shaVariant + "AndAES_" + keySize; in test_encryptWithAlgorithmParameters() local
206 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithmName, "BC"); in test_encryptWithAlgorithmParameters()
209 algorithmName, "BC"); in test_encryptWithAlgorithmParameters()
230 String algorithmName = "PBEWithHmacSHA" + shaVariant + "AndAES_" + keySize; in test_correctNames() local
231 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithmName, "BC"); in test_correctNames()
242 String algorithmName = "PBEwithMD5andDES"; in test_encryptWithNoSalt() local
243 SecretKeyFactory skf = SecretKeyFactory.getInstance(algorithmName, "BC"); in test_encryptWithNoSalt()
245 Cipher c = Cipher.getInstance(algorithmName, "BC"); in test_encryptWithNoSalt()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java40 private final String algorithmName; field in KeyStoreTest
44 public KeyStoreTest(String algorithmName, byte[] keyStoreData, in KeyStoreTest() argument
46 this.algorithmName = algorithmName; in KeyStoreTest()
54 keyStore = KeyStore.getInstance(algorithmName); in testKeyStoreLoad()
79 createAndTest("the secret password", algorithmName); in testKeyStoreCreate()
86 private void createAndTest(String password, String algorithmName) { in createAndTest() argument
89 keyStore = KeyStore.getInstance(algorithmName); in createAndTest()
/libcore/ojluni/src/main/java/java/security/spec/
DEncodedKeySpec.java48 private String algorithmName; field in EncodedKeySpec
101 this.algorithmName = algorithm; in EncodedKeySpec()
112 return algorithmName; in getAlgorithm()