HomeSort by relevance Sort by last modified time
    Searched defs:algorithms (Results 1 - 10 of 10) sorted by null

  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
JCEDHKeyAgreement.java 35 private static final Hashtable algorithms = new Hashtable(); field in class:JCEDHKeyAgreement
46 algorithms.put("DES", i64);
47 algorithms.put("DESEDE", i192);
48 algorithms.put("BLOWFISH", i128);
49 algorithms.put("AES", i256);
146 if (algorithms.containsKey(algKey))
148 Integer length = (Integer)algorithms.get(algKey);
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/
PKCS10CertificationRequest.java 75 private static Hashtable algorithms = new Hashtable(); field in class:PKCS10CertificationRequest
85 // algorithms.put("MD2WITHRSAENCRYPTION", new DERObjectIdentifier("1.2.840.113549.1.1.2"));
86 // algorithms.put("MD2WITHRSA", new DERObjectIdentifier("1.2.840.113549.1.1.2"));
88 algorithms.put("MD5WITHRSAENCRYPTION", new DERObjectIdentifier("1.2.840.113549.1.1.4"));
89 algorithms.put("MD5WITHRSA", new DERObjectIdentifier("1.2.840.113549.1.1.4"));
90 algorithms.put("RSAWITHMD5", new DERObjectIdentifier("1.2.840.113549.1.1.4"));
91 algorithms.put("SHA1WITHRSAENCRYPTION", new DERObjectIdentifier("1.2.840.113549.1.1.5"));
92 algorithms.put("SHA1WITHRSA", new DERObjectIdentifier("1.2.840.113549.1.1.5"));
94 // algorithms.put("SHA224WITHRSAENCRYPTION", PKCSObjectIdentifiers.sha224WithRSAEncryption);
95 // algorithms.put("SHA224WITHRSA", PKCSObjectIdentifiers.sha224WithRSAEncryption)
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/
KeyAgreement.java 58 private static final Hashtable algorithms = new Hashtable(); field in class:KeyAgreement
68 algorithms.put(NISTObjectIdentifiers.id_aes128_CBC.getId(), i128);
69 algorithms.put(NISTObjectIdentifiers.id_aes192_CBC.getId(), i192);
70 algorithms.put(NISTObjectIdentifiers.id_aes256_CBC.getId(), i256);
71 algorithms.put(NISTObjectIdentifiers.id_aes128_wrap.getId(), i128);
72 algorithms.put(NISTObjectIdentifiers.id_aes192_wrap.getId(), i192);
73 algorithms.put(NISTObjectIdentifiers.id_aes256_wrap.getId(), i256);
74 algorithms.put(PKCSObjectIdentifiers.id_alg_CMS3DESwrap.getId(), i192);
197 // if (!algorithms.containsKey(algorithm))
202 // int keySize = ((Integer)algorithms.get(algorithm)).intValue()
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/x509/
X509Util.java 41 private static Hashtable algorithms = new Hashtable(); field in class:X509Util
48 // algorithms.put("MD2WITHRSAENCRYPTION", PKCSObjectIdentifiers.md2WithRSAEncryption);
49 // algorithms.put("MD2WITHRSA", PKCSObjectIdentifiers.md2WithRSAEncryption);
51 algorithms.put("MD5WITHRSAENCRYPTION", PKCSObjectIdentifiers.md5WithRSAEncryption);
52 algorithms.put("MD5WITHRSA", PKCSObjectIdentifiers.md5WithRSAEncryption);
53 algorithms.put("SHA1WITHRSAENCRYPTION", PKCSObjectIdentifiers.sha1WithRSAEncryption);
54 algorithms.put("SHA1WITHRSA", PKCSObjectIdentifiers.sha1WithRSAEncryption);
56 // algorithms.put("SHA224WITHRSAENCRYPTION", PKCSObjectIdentifiers.sha224WithRSAEncryption);
57 // algorithms.put("SHA224WITHRSA", PKCSObjectIdentifiers.sha224WithRSAEncryption);
59 algorithms.put("SHA256WITHRSAENCRYPTION", PKCSObjectIdentifiers.sha256WithRSAEncryption)
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
ProviderTest.java 42 // build set of expected algorithms
75 Set<String> algorithms = remaining.get(type); local
76 if (algorithms == null || !algorithms.remove(algorithm)) {
87 if (algorithms != null && algorithms.isEmpty()) {
107 assertEquals("Extra algorithms", Collections.EMPTY_LIST, extra);
110 assertEquals("Missing algorithms", Collections.EMPTY_MAP, remaining);
121 * implementation that exists or are aliases to known algorithms.
  /libcore/support/src/test/java/libcore/java/security/
StandardNames.java 84 * A map from algorithm type (e.g. Cipher) to a set of algorithms (e.g. AES, DES, ...)
89 Set<String> algorithms = PROVIDER_ALGORITHMS.get(type); local
90 if (algorithms == null) {
91 algorithms = new HashSet();
92 PROVIDER_ALGORITHMS.put(type, algorithms);
95 algorithms.add(algorithm.toUpperCase()));
98 Set<String> algorithms = PROVIDER_ALGORITHMS.get(type); local
99 assertNotNull(algorithms);
100 assertTrue(algorithm, algorithms.remove(algorithm.toUpperCase()));
101 if (algorithms.isEmpty())
    [all...]
  /libcore/luni/src/main/java/java/util/jar/
JarVerifier.java 193 String algorithms = attributes.getValue("Digest-Algorithms"); local
194 if (algorithms == null) {
195 algorithms = "SHA SHA1";
197 StringTokenizer tokens = new StringTokenizer(algorithms);
381 String algorithms = attributes.getValue("Digest-Algorithms"); local
382 if (algorithms == null) {
383 algorithms = "SHA SHA1";
385 StringTokenizer tokens = new StringTokenizer(algorithms);
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyFactoryTest.java 137 String[] algorithms = { local
158 for (int i = 0; i < algorithms.length; i++) {
159 String algorithm = algorithms[i];
SignatureTest.java 56 String [] algorithms = { "SHA256WITHRSA", "NONEWITHDSA", "SHA384WITHRSA", local
59 for (int i = 0; i < algorithms.length; i ++) {
60 MySignature1 s = new MySignature1(algorithms[i]);
61 assertEquals(algorithms[i],s.getAlgorithm());
  /external/bouncycastle/src/main/java/org/bouncycastle/openssl/
PEMReader.java 431 String[] algorithms = {"DSA", "RSA"}; local
432 for (int i = 0; i < algorithms.length; i++)
436 KeyFactory keyFact = KeyFactory.getInstance(algorithms[i], provider);

Completed in 526 milliseconds