| /libcore/luni/src/test/java/libcore/javax/net/ssl/ |
| KeyManagerFactoryTest.java | 56 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 57 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); 58 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 64 private static boolean supportsManagerFactoryParameters(String algorithm) { 66 return algorithm.equals("NewSunX509"); 69 private static String[] keyTypes(String algorithm) { 72 return (algorithm.equals("NewSunX509") 158 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) 160 String[] keyTypes = keyTypes(algorithm); 197 test_X509ExtendedKeyManager((X509ExtendedKeyManager) km, empty, algorithm); 273 String algorithm = service.getAlgorithm(); local [all...] |
| TrustManagerFactoryTest.java | 57 private static boolean supportsManagerFactoryParameters(String algorithm) { 58 return (StandardNames.IS_RI && algorithm.equals("PKIX")); 62 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); local 63 assertEquals(StandardNames.TRUST_MANAGER_FACTORY_DEFAULT, algorithm); 64 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm); 185 String algorithm = service.getAlgorithm(); local 187 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm); 188 assertEquals(algorithm, tmf.getAlgorithm()); 193 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm, 195 assertEquals(algorithm, tmf.getAlgorithm()) 231 String algorithm = service.getAlgorithm(); local 254 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); local 284 String algorithm = "RSA"; local [all...] |
| /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
| SealedObjectTest.java | 145 assertEquals("The algorithm which was used to seal the object " 146 + "should be the same as the algorithm used to seal the " 156 String algorithm = "DES"; local 157 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 160 Cipher cipher = Cipher.getInstance(algorithm); 164 assertEquals("The algorithm name should be the same as used " 165 + "in cipher.", algorithm, so.getAlgorithm()); 170 * encryption algorithm and specified parameters can be retrieved by 190 + "should contain the encoded algorithm parameters.", Arrays 206 * with encryption algorithm and specified parameters can be retrieved b [all...] |
| /libcore/luni/src/test/java/org/apache/harmony/security/tests/provider/crypto/ |
| SHA1PRNG_SecureRandomTest.java | 38 private static final String algorithm = "SHA1PRNG"; // algorithm's name field in class:SHA1PRNG_SecureRandomTest 51 sr = SecureRandom.getInstance(algorithm, provider); 52 sr2 = SecureRandom.getInstance(algorithm, provider); 192 sr1 = SecureRandom.getInstance(algorithm, provider); 193 sr2 = SecureRandom.getInstance(algorithm, provider); 248 sr1 = SecureRandom.getInstance(algorithm, provider); 249 sr2 = SecureRandom.getInstance(algorithm, provider); 289 sr1 = SecureRandom.getInstance(algorithm, provider); 290 sr2 = SecureRandom.getInstance(algorithm, provider) [all...] |
| /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
| CipherTest.java | 47 static final String algorithm = "DESede"; field in class:CipherTest 52 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 150 final String algorithm = "DESede/CBC/PKCS5Padding"; local 152 Cipher cipher = Cipher.getInstance(algorithm); 153 assertTrue("Cipher algorithm does not match", cipher.getAlgorithm() 154 .equals(algorithm)); 161 final String algorithm = "DESede/CBC/PKCS5Padding"; local 163 Cipher cipher = Cipher.getInstance(algorithm); 173 Cipher cipher = Cipher.getInstance(algorithm + "/ECB/PKCS5Padding"); 189 Cipher cipher = Cipher.getInstance(algorithm + "/ECB/PKCS5Padding") [all...] |
| /external/chromium/net/base/ |
| dnssec_chain_verifier.cc | 30 uint8 algorithm 511 // algorithm: see http://tools.ietf.org/html/rfc4034#appendix-A.1 517 uint8 algorithm) { 541 output[2] = algorithm; 746 uint8 algorithm = next_entry_key[3]; local 753 keyid, algorithm)) {
|
| x509_certificate_win.cc | 305 // signature algorithm of the root CA certificate because the signature on 309 const char* algorithm = cert->pCertInfo->SignatureAlgorithm.pszObjId; local 310 if (strcmp(algorithm, szOID_RSA_MD5RSA) == 0) { 315 } else if (strcmp(algorithm, szOID_RSA_MD2RSA) == 0) { 320 } else if (strcmp(algorithm, szOID_RSA_MD4RSA) == 0) { [all...] |
| /external/chromium_org/net/cert/ |
| cert_verify_proc_win.cc | 311 // root CA certificate is present, do not inspect the signature algorithm of 316 // don't inspect the root's signature algorithm. 328 const char* algorithm = cert->pCertInfo->SignatureAlgorithm.pszObjId; local 329 if (strcmp(algorithm, szOID_RSA_MD5RSA) == 0) { 332 } else if (strcmp(algorithm, szOID_RSA_MD2RSA) == 0) { 335 } else if (strcmp(algorithm, szOID_RSA_MD4RSA) == 0) {
|
| /external/libppp/src/ |
| ccp.h | 87 int algorithm; member in struct:ccp_opt 101 int algorithm; /* Algorithm in use */ member in struct:ccp::__anon22793 107 int algorithm; /* Algorithm in use */ member in struct:ccp::__anon22794
|
| /hardware/samsung_slsi/exynos5/libkeymaster/ |
| tlTeeKeymaster_Api.h | 101 uint32_t algorithm; /**< Signing algorithm */ member in struct:__anon34083 115 uint32_t algorithm; /**< Signing algorithm */ member in struct:__anon34084 144 uint32_t digest; /**< Digest algorithm */ 158 uint32_t digest; /**< Digest algorithm */
|
| /libcore/luni/src/main/java/java/util/jar/ |
| JarVerifier.java | 204 final String algorithm = DIGEST_ALGORITHMS[i]; local 205 final String hash = attributes.getValue(algorithm + "-Digest"); 212 return new VerifierEntry(name, MessageDigest.getInstance(algorithm), hashBytes, 388 String algorithm = DIGEST_ALGORITHMS[i]; local 389 String hash = attributes.getValue(algorithm + entry); 396 md = MessageDigest.getInstance(algorithm);
|
| /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
| KeyFactoryTest.java | 71 String algorithm = parameters[i]; local 73 String message = "getInstance(" + (algorithm == null ? "null" : "\"" + algorithm + "\"") + ")"; 75 KeyFactory.getInstance(algorithm); 159 String algorithm = algorithms[i]; local 162 (algorithm == null ? "null" : "\"" + algorithm + "\"") + 167 KeyFactory.getInstance(algorithm, provider);
|
| /libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
| SSLServerSocketTest.java | 401 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 402 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
| SSLSocketTest.java | 597 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 598 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
| /cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
| TestPackageDef.java | 390 final String algorithm = "SHA-1"; local 395 MessageDigest md = MessageDigest.getInstance(algorithm); 402 return algorithm + " not found";
|
| /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
| DSAKeyFactoryImplTest.java | 56 static String algorithm = "DSA"; field in class:DSAKeyFactoryImplTest 106 kpGen = KeyPairGenerator.getInstance(algorithm); 185 kf = KeyFactory.getInstance(algorithm, "Crypto"); 343 * whose algorithm is neither null nor "DSA". 468 * whose algorithm is neither null nor "DSA". 749 * the method returns DSAPrivateKey whose algorithm is neither null nor "DSA". 793 * the method returns DSAPrivateKey whose algorithm is neither null nor "DSA".
|
| /external/chromium_org/crypto/ |
| signature_verifier_unittest.cc | 12 // that is signed), signature_algorithm, and algorithm come from the 114 // The signature algorithm is specified as the following ASN.1 structure: 116 // algorithm OBJECT IDENTIFIER, 117 // parameters ANY DEFINED BY algorithm OPTIONAL } 155 // algorithm AlgorithmIdentifier, 159 // algorithm 1042 static const uint8 algorithm[] = { local [all...] |
| /frameworks/av/media/libmedia/ |
| IDrm.cpp | 295 String8 const &algorithm) { 300 data.writeString8(algorithm); 306 String8 const &algorithm) { 311 data.writeString8(algorithm); 657 String8 algorithm = data.readString8(); local 658 reply->writeInt32(setCipherAlgorithm(sessionId, algorithm)); 667 String8 algorithm = data.readString8(); local 668 reply->writeInt32(setMacAlgorithm(sessionId, algorithm));
|
| /libcore/luni/src/test/java/libcore/java/security/ |
| KeyPairGeneratorTest.java | 65 String algorithm = service.getAlgorithm(); local 75 if ("DH".equals(algorithm)) { 81 KeyPairGenerator kpg1 = KeyPairGenerator.getInstance(algorithm); 82 assertEquals(algorithm, kpg1.getAlgorithm()); 89 KeyPairGenerator kpg2 = KeyPairGenerator.getInstance(algorithm, provider); 90 assertEquals(algorithm, kpg2.getAlgorithm()); 98 KeyPairGenerator kpg3 = KeyPairGenerator.getInstance(algorithm, 100 assertEquals(algorithm, kpg3.getAlgorithm()); 107 throw new Exception("Problem testing KeyPairGenerator." + algorithm, e); 115 private static void putKeySize(String algorithm, int keySize) 163 String algorithm = kpg.getAlgorithm(); local [all...] |
| SignatureTest.java | 58 String algorithm = service.getAlgorithm(); local 60 KeyPair kp = keyPair(algorithm, provider.getName()); 62 Signature sig1 = Signature.getInstance(algorithm); 63 assertEquals(algorithm, sig1.getAlgorithm()); 67 Signature sig2 = Signature.getInstance(algorithm, provider); 68 assertEquals(algorithm, sig2.getAlgorithm()); 73 Signature sig3 = Signature.getInstance(algorithm, provider.getName()); 74 assertEquals(algorithm, sig3.getAlgorithm()); 78 throw new Exception("Problem testing Signature." + algorithm, e); 101 throw new Exception("Unknown KeyPair algorithm for Signature algorithm [all...] |
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/ |
| BcKeyStoreSpi.java | 411 String algorithm = dIn.readUTF(); local 427 return new SecretKeySpec(enc, algorithm); 439 return KeyFactory.getInstance(algorithm, BouncyCastleProvider.PROVIDER_NAME).generatePrivate(spec); 441 return KeyFactory.getInstance(algorithm, BouncyCastleProvider.PROVIDER_NAME).generatePublic(spec); 443 return SecretKeyFactory.getInstance(algorithm, BouncyCastleProvider.PROVIDER_NAME).generateSecret(spec); 455 String algorithm, 465 SecretKeyFactory keyFact = SecretKeyFactory.getInstance(algorithm, BouncyCastleProvider.PROVIDER_NAME); 468 Cipher cipher = Cipher.getInstance(algorithm, BouncyCastleProvider.PROVIDER_NAME);
|
| /external/chromium_org/net/test/android/javatests/src/org/chromium/net/test/util/ |
| TestWebServer.java | 471 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 472 KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(algorithm);
|
| /frameworks/base/media/jni/ |
| android_media_MediaDrm.cpp | 1054 "algorithm String is null"); 1059 String8 algorithm = JStringToString8(env, jalgorithm); local 1061 status_t err = drm->setCipherAlgorithm(sessionId, algorithm); 1063 throwExceptionAsNecessary(env, err, "Failed to set cipher algorithm"); 1083 String8 algorithm = JStringToString8(env, jalgorithm); local [all...] |
| /frameworks/base/wifi/java/android/net/wifi/ |
| WifiEnterpriseConfig.java | 135 String algorithm = mClientPrivateKey.getAlgorithm(); local 139 dest.writeString(algorithm); 180 String algorithm = in.readString(); 181 KeyFactory keyFactory = KeyFactory.getInstance(algorithm);
|
| /libcore/luni/src/main/java/java/security/ |
| 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: 296 * Returns true if this provider implements the given algorithm. Caller 303 * Algorithm or type. 393 * specified {@code algorithm}, or {@code null} if no such implementation 396 * If two services match the requested type and algorithm, the one added 402 * @param algorithm 403 * the algorithm name (case insensitive) 408 String algorithm) { 579 String algorithm = null; local 643 String algorithm; local 814 private String algorithm; field in class:Provider.Service [all...] |