/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
SecretKeySpecTest.java | 44 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that 57 String algorithm = "Algorithm"; local 60 new SecretKeySpec(new byte[] {}, algorithm); 67 new SecretKeySpec(null, algorithm); 76 + "in the case of null algorithm."); 80 SecretKeySpec ks = new SecretKeySpec(key, algorithm); 88 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method 103 String algorithm = "Algorithm"; local 167 String algorithm = "Algorithm"; local 191 String algorithm = "Algorithm"; local 210 String algorithm = "Algorithm"; local 230 String algorithm = "Algorithm"; local 262 String algorithm = "Algorithm"; local 283 String algorithm = "Algorithm"; local [all...] |
/dalvik/libcore/security/src/main/java/java/security/ |
MessageDigest.java | 27 * way hash values for arbitrary input, utilizing the algorithm it was 43 // The algorithm. 44 private String algorithm; field in class:MessageDigest 48 * the algorithm to use. 50 * @param algorithm 51 * the name of algorithm to use 53 protected MessageDigest(String algorithm) { 54 this.algorithm = algorithm; 59 * specified algorithm [all...] |
SecureRandom.java | 48 private String algorithm; field in class:SecureRandom 72 this.algorithm = "SHA1PRNG"; //$NON-NLS-1$ 77 this.algorithm = service.getAlgorithm(); 127 String algorithm) { 130 this.algorithm = algorithm; 136 * specified algorithm. 138 * @param algorithm 139 * the name of the algorithm to use. 141 * specified algorithm [all...] |
Signature.java | 49 // The algorithm. 50 private String algorithm; field in class:Signature 79 * the algorithm to use. 81 * @param algorithm 82 * the name of algorithm to use. 84 protected Signature(String algorithm) { 85 this.algorithm = algorithm; 90 * algorithm. 92 * @param algorithm [all...] |
Provider.java | 60 // Contains "Service.Algorithm" and Provider.Service classes added using 68 // Contains "Service.Algorithm" and Provider.Service classes added using 78 // For getService(String type, String algorithm) optimization: 357 * Returns true if this provider implements the given algorithm. Caller 364 * Algorithm or type. 454 * specified {@code algorithm}, or {@code null} if no such implementation 457 * If two services match the requested type and algorithm, the one added 463 * @param algorithm 464 * the algorithm name (case insensitive) 469 String algorithm) { 662 String algorithm = null; local 726 String algorithm; local 901 private String algorithm; field in class:Provider.Service [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
JCEPBEKey.java | 15 String algorithm; field in class:JCEPBEKey 29 String algorithm, 38 this.algorithm = algorithm; 50 return algorithm;
|
JDKKeyFactory.java | 240 throw new RuntimeException("algorithm identifier " + algOid + " in key not recognised"); 297 throw new RuntimeException("algorithm identifier " + algOid + " in key not recognised"); 670 String algorithm; field in class:JDKKeyFactory.EC 678 String algorithm) 680 this.algorithm = algorithm; 702 // return new JCEECPrivateKey(algorithm, (ECPrivateKeySpec)keySpec); 706 // return new JCEECPrivateKey(algorithm, (java.security.spec.ECPrivateKeySpec)keySpec); 732 // return new JCEECPublicKey(algorithm, (ECPublicKeySpec)keySpec); 736 // return new JCEECPublicKey(algorithm, (java.security.spec.ECPublicKeySpec)keySpec) [all...] |
JDKKeyStore.java | 411 String algorithm = dIn.readUTF(); local 427 return new SecretKeySpec(enc, algorithm); 439 return KeyFactory.getInstance(algorithm, "BC").generatePrivate(spec); 441 return KeyFactory.getInstance(algorithm, "BC").generatePublic(spec); 443 return SecretKeyFactory.getInstance(algorithm, "BC").generateSecret(spec); 455 String algorithm, 465 SecretKeyFactory keyFact = SecretKeyFactory.getInstance(algorithm, "BC"); 468 Cipher cipher = Cipher.getInstance(algorithm, "BC");
|
JDKPKCS12KeyStore.java | 555 String algorithm = algId.getObjectId().getId(); local 564 algorithm, "BC"); 573 Cipher cipher = Cipher.getInstance(algorithm, "BC"); 577 // we pass "" as the key algorithm type as it is unknown at this point 589 String algorithm, 601 algorithm, "BC"); 606 Cipher cipher = Cipher.getInstance(algorithm, "BC"); 627 String algorithm = algId.getObjectId().getId(); local 636 algorithm, "BC"); 644 Cipher cipher = Cipher.getInstance(algorithm, "BC") [all...] |
/external/ipsec-tools/src/racoon/ |
getcertsbyname.c | 70 getnewci(qtype, keytag, algorithm, flags, certlen, cert) 71 int qtype, keytag, algorithm, flags, certlen; 83 res->ci_algorithm = algorithm; 127 int type, keytag, algorithm; local 170 algorithm = *cp++; /* algorithm */ 175 type, keytag, algorithm, rdlength); 179 cur->ci_next = getnewci(type, keytag, algorithm, 214 int qtype, qclass, keytag, algorithm; local 303 algorithm = *cp++; /* algorithm * [all...] |
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyFactory2Test.java | 116 "algorithm name"); 117 assertEquals("algorithm name", kf.getAlgorithm()); 158 "generatePrivate generated different key for algorithm " 164 fail("invalid key spec for algorithm " + keyfactAlgs[i]); 166 fail("getInstance did not find algorithm " + keyfactAlgs[i]); 205 "generatePublic generated different key for algorithm " 208 fail("getInstance did not find algorithm " + keyfactAlgs[i]); 212 fail("invalid key spec for algorithm " + keyfactAlgs[i]); 233 assertTrue("getAlgorithm ok for algorithm " + keyfactAlgs[i], 236 fail("getInstance did not find algorithm " + keyfactAlgs[i]) 498 String algorithm = (String) e.nextElement(); local [all...] |
MessageDigest2Test.java | 109 assertTrue("cloned hash differs from original for algorithm " 115 fail("getInstance did not find algorithm " + digestAlgs[i]); 255 fail("getInstance did not find algorithm"); 309 fail("getInstance did not find algorithm " + digestAlgs[i]); 335 fail("getInstance did not find algorithm " + digestAlgs[i]); 339 fail("digest caused exception for algorithm " + digestAlgs[i] 391 fail("getInstance did not find algorithm " + digestAlgs[i]); 415 fail("getInstance did not find algorithm " + digestAlgs[i]); 436 fail("getInstance did not find algorithm " + digestAlgs[i]); 463 fail("getInstance did not find algorithm " + digestAlgs[i]) 639 String algorithm = (String) e.nextElement(); local [all...] |
KeyFactoryTest.java | 81 String algorithm = parameters[i]; local 83 String message = "getInstance(" + (algorithm == null ? "null" : "\"" + algorithm + "\"") + ")"; 85 KeyFactory.getInstance(algorithm); 179 String algorithm = algorithms[i]; local 182 (algorithm == null ? "null" : "\"" + algorithm + "\"") + 187 KeyFactory.getInstance(algorithm, provider);
|
/bionic/libc/netbsd/nameser/ |
ns_print.c | 464 u_int keyflags, protocol, algorithm, key_id; local 471 /* Key flags, Protocol, Algorithm. */ 479 algorithm = *rdata++; 481 keyflags, protocol, algorithm)); 510 u_int typ, algorithm, labels, footprint; local 518 /* Type covered, Algorithm, Label count, Original TTL. */ 520 algorithm = *rdata++; 524 p_type((int)typ), algorithm, labels, t)); 633 /* Algorithm name. */
|
/external/apache-http/src/org/apache/http/impl/auth/ |
DigestScheme.java | 248 "Unsupported algorithm in HTTP Digest authentication: " 258 * @throws AuthenticationException when MD5 is an unsupported algorithm 266 String algorithm = getParameter("algorithm"); local 276 // If an algorithm is not specified, default to MD5. 277 if (algorithm == null) { 278 algorithm = "MD5"; 306 //a1 is suitable for MD5 algorithm 307 if(algorithm.equals("MD5-sess")) { 322 } else if (!algorithm.equals("MD5")) 398 String algorithm = getParameter("algorithm"); local [all...] |
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
JarVerifier.java | 206 String algorithm = tokens.nextToken(); local 207 String hash = attributes.getValue(algorithm + "-Digest"); //$NON-NLS-1$ 220 return new VerifierEntry(name, OpenSSLMessageDigestJDK.getInstance(algorithm), 409 String algorithm = tokens.nextToken(); local 410 String hash = attributes.getValue(algorithm + entry); 418 md = OpenSSLMessageDigestJDK.getInstance(algorithm);
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CertImpl.java | 93 // indicates whether the signature algorithm parameters are null 326 // retrieve the name of the signing algorithm 344 // retrieve the name of the signing algorithm 581 String algorithm = getSigAlgName(); local 585 if ("MD2withRSA".equalsIgnoreCase(algorithm) || 586 "MD2withRSAEncryption".equalsIgnoreCase(algorithm) || 587 "1.2.840.113549.1.1.2".equalsIgnoreCase(algorithm) || 588 "MD2/RSA".equalsIgnoreCase(algorithm)) { 589 throw new NoSuchAlgorithmException(algorithm); 592 int i = algorithm.indexOf("with") [all...] |
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/ |
SSLServerSocketTest.java | 575 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 576 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
SSLSocketTest.java | 878 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local [all...] |
HandshakeCompletedEventTest.java | 676 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 677 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
SSLSessionTest.java | 884 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local [all...] |
/cts/tests/src/android/webkit/cts/ |
CtsTestServer.java | 611 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 612 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherTest.java | 70 static final String algorithm = "DESede"; field in class:CipherTest 79 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 289 final String algorithm = "DESede/CBC/PKCS5Padding"; local 291 Cipher cipher = Cipher.getInstance(algorithm); 292 assertTrue("Cipher algorithm does not match", cipher.getAlgorithm() 293 .equals(algorithm)); 315 final String algorithm = "DESede/CBC/PKCS5Padding"; local 317 Cipher cipher = Cipher.getInstance(algorithm); 342 Cipher cipher = Cipher.getInstance(algorithm + "/ECB/PKCS5Padding"); 372 Cipher cipher = Cipher.getInstance(algorithm + "/ECB/PKCS5Padding") [all...] |
/cts/tools/host/src/com/android/cts/ |
TestPackage.java | 773 final String algorithm = "SHA-1"; local 776 MessageDigest md = MessageDigest.getInstance(algorithm); 785 return algorithm + " not found"; [all...] |
/external/openssl/crypto/pkcs7/ |
pkcs7.h | 137 X509_ALGOR *algorithm; member in struct:pkcs7_enc_content_st
|