Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/javax/crypto/
DCryptoPermission.java40 CryptoPermission(String alg) { super(""); } in CryptoPermission() argument
42 CryptoPermission(String alg, int maxKeySize) { super(""); } in CryptoPermission() argument
44 CryptoPermission(String alg, in CryptoPermission() argument
48 CryptoPermission(String alg, in CryptoPermission() argument
51 CryptoPermission(String alg, in CryptoPermission() argument
55 CryptoPermission(String alg, in CryptoPermission() argument
DJceSecurityManager.java43 CryptoPermission getCryptoPermission(String alg) { return null; } in getCryptoPermission() argument
DCryptoPermissions.java59 PermissionCollection getPermissionCollection(String alg) { return null; } in getPermissionCollection() argument
DCipher.java2452 String alg = params.getAlgorithm().toUpperCase(Locale.ENGLISH); in getAlgorithmParameterSpec() local
2454 if (alg.equalsIgnoreCase("RC2")) { in getAlgorithmParameterSpec()
2458 if (alg.equalsIgnoreCase("RC5")) { in getAlgorithmParameterSpec()
2462 if (alg.startsWith("PBE")) { in getAlgorithmParameterSpec()
2466 if (alg.startsWith("DES")) { in getAlgorithmParameterSpec()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java108 private String alg; field in MyExemptionMechanismSpi.tmpKey
110 public tmpKey(String alg, byte[] enc) { in tmpKey() argument
111 this.alg = alg; in tmpKey()
118 return alg; in getAlgorithm()
127 public tmp1Key(String alg, byte[] enc) { in tmp1Key() argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator2Test.java202 String alg = validValues[i].concat(post); in GetInstance01() local
203 kpG = KeyPairGenerator.getInstance(alg); in GetInstance01()
205 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance01()
241 String alg = validValues[i].concat(post); in GetInstance02() local
243 KeyPairGenerator.getInstance(alg, prov); in GetInstance02()
245 .concat(alg).concat(")")); in GetInstance02()
250 String alg = validValues[i].concat(post); in GetInstance02() local
253 KeyPairGenerator.getInstance(alg, invalidValues[j]); in GetInstance02()
255 .concat(alg).concat(" provider: ").concat( in GetInstance02()
263 String alg = validValues[i].concat(post); in GetInstance02() local
[all …]
DKeyPairGenerator3Test.java140 String[] alg = {null, "", "AsDfGh!#$*", "DSA", "RSA"}; in testKeyPairGeneratorConst() local
143 for (int i = 0; i < alg.length; i++) { in testKeyPairGeneratorConst()
145 kpg = new MykeyPGen(alg[i]); in testKeyPairGeneratorConst()
158 public MykeyPGen(String alg) { in MykeyPGen() argument
159 super(alg); in MykeyPGen()
DAlgorithmParametersTest.java197 String[] alg = {"", "qwertyu", "!@#$%^&*()"}; in test_getInstanceLjava_lang_StringLjava_lang_String() local
209 for (int i = 0; i < alg.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
211 AlgorithmParameters ap = AlgorithmParameters.getInstance(alg[i], "MyProvider"); in test_getInstanceLjava_lang_StringLjava_lang_String()
212 fail("NoSuchAlgorithmException was not thrown for parameter " + alg[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
216 fail("Incorrect exception " + e + " was thrown for " + alg[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
305 String[] alg = {"", "qwertyu", "!@#$%^&*()"}; in test_getInstanceLjava_lang_StringLjava_security_Provider() local
317 for (int i = 0; i < alg.length; i++) { in test_getInstanceLjava_lang_StringLjava_security_Provider()
319 AlgorithmParameters ap = AlgorithmParameters.getInstance(alg[i], p); in test_getInstanceLjava_lang_StringLjava_security_Provider()
320 fail("NoSuchAlgorithmException was not thrown for parameter " + alg[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
324 fail("Incorrect exception " + e + " was thrown for " + alg[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
[all …]
DKSPrivateKeyEntryTest.java234 private String alg = "My algorithm"; field in KSPrivateKeyEntryTest.tmpPrivateKey
237 return alg; in getAlgorithm()
253 alg = algorithm; in tmpPrivateKey()
DKeyPairGenerator4Test.java43 String alg = KeyPairGenerator.getInstance("DSA").getAlgorithm(); in test_getAlgorithm() local
44 assertEquals("getAlgorithm returned unexpected value", "DSA", alg); in test_getAlgorithm()
DAlgorithmParameterGenerator1Test.java388 public myAlgPG(AlgorithmParameterGeneratorSpi spi, Provider prov, String alg) { in myAlgPG() argument
389 super(spi, prov, alg); in myAlgPG()
DSignature2Test.java90 String alg = Signature.getInstance("DSA").getAlgorithm(); in test_getAlgorithm() local
91 assertTrue("getAlgorithm did not get DSA (" + alg + ")", alg in test_getAlgorithm()
DKeyFactory2Test.java72 private KeepAlive createKeepAlive(String alg) { in createKeepAlive() argument
73 if (alg.equals("RSA")) { in createKeepAlive()
/libcore/tools/docs/crypto/
Dupdate_crypto_support.py196 for alg in alg_union:
197 prev_alg = find_by_normalized_name(prev_category['algorithms'], alg)
200 elif alg in name_dict:
201 new_algorithm = {'name': name_dict[alg]}
203 new_algorithm = {'name': alg}
207 if alg in current_category and alg in prev_algorithms:
214 elif alg in prev_algorithms:
229 if alg in prev_algorithms and 'note' in prev_alg:
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java648 String alg = m.group(1); in getInstanceStrong() local
653 return SecureRandom.getInstance(alg); in getInstanceStrong()
655 return SecureRandom.getInstance(alg, prov); in getInstanceStrong()
DProvider.java971 String alg = key.substring(i + 1); in getTypeAndAlgorithm() local
972 return new String[] {type, alg}; in getTypeAndAlgorithm()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java50 public byte[] getSecretKey(String alg, byte[] publicKey) throws Exception { in getSecretKey() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java516 String alg) { in myTrustManagerFactory() argument
517 super(spi, prov, alg); in myTrustManagerFactory()
DKeyManagerFactory1Test.java525 String alg) { in myKeyManagerFactory() argument
526 super(spi, prov, alg); in myKeyManagerFactory()
DSSLContext1Test.java596 public MySslContext(SSLContextSpi spi, Provider prov, String alg) { in MySslContext() argument
597 super(spi, prov, alg); in MySslContext()
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderList.java361 for (String alg : algorithms) {
362 ids.add(new ServiceId(type, alg));
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactoryTest.java480 public mySecretKeyFactory(SecretKeyFactorySpi spi, Provider prov, String alg) { in mySecretKeyFactory() argument
481 super(spi, prov, alg); in mySecretKeyFactory()