/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...] |
/external/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 72 String algorithm = KeyManagerFactory.getDefaultAlgorithm();
local 73 TrustManagerFactory tmFactory = TrustManagerFactory.getInstance(algorithm);
74 KeyManagerFactory kmFactory = KeyManagerFactory.getInstance(algorithm);
|
/libcore/luni/src/main/java/java/security/ |
MessageDigest.java | 59 // The algorithm. 60 private String algorithm; field in class:MessageDigest 64 * the algorithm to use. 66 * @param algorithm 67 * the name of algorithm to use 69 protected MessageDigest(String algorithm) { 70 this.algorithm = algorithm; 75 * specified algorithm. 77 * @param algorithm [all...] |
SecureRandom.java | 32 * compatible with the SHA1PRNG algorithm on the reference 36 * <p>The default algorithm is defined by the first {@code SecureRandomSpi} 44 * algorithm must be secure. 79 private String algorithm; field in class:SecureRandom 93 * Constructs a new {@code SecureRandom} that uses the default algorithm. 102 this.algorithm = "SHA1PRNG"; 107 this.algorithm = service.getAlgorithm(); 116 * algorithm. <a href="#insecure_seed">Seeding {@code SecureRandom} may be 141 String algorithm) { 144 this.algorithm = algorithm [all...] |
Signature.java | 47 // The algorithm. 48 private String algorithm; field in class:Signature 77 * the algorithm to use. 79 * @param algorithm 80 * the name of algorithm to use. 82 protected Signature(String algorithm) { 83 this.algorithm = algorithm; 88 * algorithm. 90 * @param algorithm [all...] |
Provider.java | 58 // Contains "Service.Algorithm" and Provider.Service classes added using 66 // Contains "Service.Algorithm" and Provider.Service classes added using 76 // For getService(String type, String algorithm) optimization: 355 * Returns true if this provider implements the given algorithm. Caller 362 * Algorithm or type. 452 * specified {@code algorithm}, or {@code null} if no such implementation 455 * If two services match the requested type and algorithm, the one added 461 * @param algorithm 462 * the algorithm name (case insensitive) 467 String algorithm) { 661 String algorithm = null; local 727 String algorithm; local 909 private String algorithm; field in class:Provider.Service [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
Mac.java | 47 // Store used algorithm name 48 private final String algorithm; field in class:Mac 60 * @param algorithm 61 * the name of the MAC algorithm. 63 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { 65 this.algorithm = algorithm; 71 * Returns the name of the MAC algorithm. 73 * @return the name of the MAC algorithm. 76 return algorithm; [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SealedObjectTest.java | 164 assertEquals("The algorithm which was used to seal the object " 165 + "should be the same as the algorithm used to seal the " 181 String algorithm = "DES"; local 182 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 185 Cipher cipher = Cipher.getInstance(algorithm); 189 assertEquals("The algorithm name should be the same as used " 190 + "in cipher.", algorithm, so.getAlgorithm()); 195 * encryption algorithm and specified parameters can be retrieved by 221 + "should contain the encoded algorithm parameters.", Arrays 237 * with encryption algorithm and specified parameters can be retrieved b [all...] |
CipherTest.java | 69 static final String algorithm = "DESede"; field in class:CipherTest 78 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 287 final String algorithm = "DESede/CBC/PKCS5Padding"; local 289 Cipher cipher = Cipher.getInstance(algorithm); 290 assertTrue("Cipher algorithm does not match", cipher.getAlgorithm() 291 .equals(algorithm)); 313 final String algorithm = "DESede/CBC/PKCS5Padding"; local 315 Cipher cipher = Cipher.getInstance(algorithm); 340 Cipher cipher = Cipher.getInstance(algorithm + "/ECB/PKCS5Padding"); 370 Cipher cipher = Cipher.getInstance(algorithm + "/ECB/PKCS5Padding") [all...] |
/libcore/luni/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...] |
/libcore/luni/src/test/java/libcore/java/security/ |
ProviderTest.java | 65 String algorithm = service.getAlgorithm().toUpperCase(); local 70 + " " + algorithm 76 if (algorithms == null || !algorithms.remove(algorithm)) { 78 // algorithm is available from multiple providers 83 && StandardNames.PROVIDER_ALGORITHMS.get(type).contains(algorithm))) { 84 extra.add("Unknown " + type + " " + algorithm + "\n");
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 48 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 49 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); 50 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 157 String algorithm = service.getAlgorithm(); local 160 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 161 assertEquals(algorithm, kmf.getAlgorithm()); 166 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm, 168 assertEquals(algorithm, kmf.getAlgorithm()); 174 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm, 176 assertEquals(algorithm, kmf.getAlgorithm()) [all...] |
/external/chromium/net/base/ |
x509_certificate_win.cc | 268 // signature algorithm of the root CA certificate because the signature on 272 const char* algorithm = cert->pCertInfo->SignatureAlgorithm.pszObjId; local 273 if (strcmp(algorithm, szOID_RSA_MD5RSA) == 0) { 278 } else if (strcmp(algorithm, szOID_RSA_MD2RSA) == 0) { 283 } else if (strcmp(algorithm, szOID_RSA_MD4RSA) == 0) {
|
/libcore/luni/src/main/java/java/util/jar/ |
JarVerifier.java | 206 String algorithm = tokens.nextToken(); local 207 String hash = attributes.getValue(algorithm + "-Digest"); 215 .getInstance(algorithm), hashBytes, certificatesArray); 394 String algorithm = tokens.nextToken(); local 395 String hash = attributes.getValue(algorithm + entry); 402 md = MessageDigest.getInstance(algorithm);
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CertImpl.java | 88 // indicates whether the signature algorithm parameters are null 302 // retrieve the name of the signing algorithm 545 String algorithm = getSigAlgName(); local 549 if ("MD2withRSA".equalsIgnoreCase(algorithm) || 550 "MD2withRSAEncryption".equalsIgnoreCase(algorithm) || 551 "1.2.840.113549.1.1.2".equalsIgnoreCase(algorithm) || 552 "MD2/RSA".equalsIgnoreCase(algorithm)) { 553 throw new NoSuchAlgorithmException(algorithm); 556 int i = algorithm.indexOf("with"); 557 algorithm = algorithm.substring(i + 4) + "-" + algorithm.substring(0, i) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
SSLParametersImpl.java | 386 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 387 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 423 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); local 424 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm);
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLServerSocketTest.java | 578 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 579 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
SSLSocketTest.java | 880 String algorithm = KeyManagerFactory.getDefaultAlgorithm() local [all...] |
HandshakeCompletedEventTest.java | 676 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 677 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
SSLSessionTest.java | 644 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 645 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
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); 456 String algorithm, 466 SecretKeyFactory keyFact = SecretKeyFactory.getInstance(algorithm, "BC"); 469 Cipher cipher = Cipher.getInstance(algorithm, "BC");
|