/external/stlport/test/unit/ |
H A D | algorithm_header_test.cpp | 8 #include <algorithm>
|
/external/chromium_org/net/quic/crypto/ |
H A D | quic_decrypter.cc | 15 QuicDecrypter* QuicDecrypter::Create(QuicTag algorithm) { argument 16 switch (algorithm) { 24 LOG(FATAL) << "Unsupported algorithm: " << algorithm;
|
H A D | quic_encrypter.cc | 15 QuicEncrypter* QuicEncrypter::Create(QuicTag algorithm) { argument 16 switch (algorithm) { 24 LOG(FATAL) << "Unsupported algorithm: " << algorithm;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/ |
H A D | DefaultJcaJceHelper.java | 24 String algorithm) 27 return Cipher.getInstance(algorithm); 30 public Mac createMac(String algorithm) argument 33 return Mac.getInstance(algorithm); 36 public KeyAgreement createKeyAgreement(String algorithm) argument 39 return KeyAgreement.getInstance(algorithm); 42 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) argument 45 return AlgorithmParameterGenerator.getInstance(algorithm); 48 public AlgorithmParameters createAlgorithmParameters(String algorithm) argument 51 return AlgorithmParameters.getInstance(algorithm); 23 createCipher( String algorithm) argument 54 createKeyGenerator(String algorithm) argument 60 createKeyFactory(String algorithm) argument 66 createSecretKeyFactory(String algorithm) argument 72 createKeyPairGenerator(String algorithm) argument 78 createDigest(String algorithm) argument 84 createSignature(String algorithm) argument 90 createCertificateFactory(String algorithm) argument [all...] |
H A D | NamedJcaJceHelper.java | 32 String algorithm) 35 return Cipher.getInstance(algorithm, providerName); 38 public Mac createMac(String algorithm) argument 41 return Mac.getInstance(algorithm, providerName); 44 public KeyAgreement createKeyAgreement(String algorithm) argument 47 return KeyAgreement.getInstance(algorithm, providerName); 50 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) argument 53 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); 56 public AlgorithmParameters createAlgorithmParameters(String algorithm) argument 59 return AlgorithmParameters.getInstance(algorithm, providerNam 31 createCipher( String algorithm) argument 62 createKeyGenerator(String algorithm) argument 68 createKeyFactory(String algorithm) argument 74 createSecretKeyFactory(String algorithm) argument 80 createKeyPairGenerator(String algorithm) argument 86 createDigest(String algorithm) argument 92 createSignature(String algorithm) argument 98 createCertificateFactory(String algorithm) argument [all...] |
H A D | ProviderJcaJceHelper.java | 32 String algorithm) 35 return Cipher.getInstance(algorithm, provider); 38 public Mac createMac(String algorithm) argument 41 return Mac.getInstance(algorithm, provider); 44 public KeyAgreement createKeyAgreement(String algorithm) argument 47 return KeyAgreement.getInstance(algorithm, provider); 50 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) argument 53 return AlgorithmParameterGenerator.getInstance(algorithm, provider); 56 public AlgorithmParameters createAlgorithmParameters(String algorithm) argument 59 return AlgorithmParameters.getInstance(algorithm, provide 31 createCipher( String algorithm) argument 62 createKeyGenerator(String algorithm) argument 68 createKeyFactory(String algorithm) argument 74 createSecretKeyFactory(String algorithm) argument 80 createKeyPairGenerator(String algorithm) argument 86 createDigest(String algorithm) argument 92 createSignature(String algorithm) argument 98 createCertificateFactory(String algorithm) argument [all...] |
H A D | JcaJceHelper.java | 24 String algorithm) 27 Mac createMac(String algorithm) argument 30 KeyAgreement createKeyAgreement(String algorithm) argument 33 AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) argument 36 AlgorithmParameters createAlgorithmParameters(String algorithm) argument 39 KeyGenerator createKeyGenerator(String algorithm) argument 42 KeyFactory createKeyFactory(String algorithm) argument 45 SecretKeyFactory createSecretKeyFactory(String algorithm) argument 48 KeyPairGenerator createKeyPairGenerator(String algorithm) argument 51 MessageDigest createDigest(String algorithm) argument 23 createCipher( String algorithm) argument 54 createSignature(String algorithm) argument 57 createCertificateFactory(String algorithm) argument [all...] |
/external/libcxx/test/algorithms/ |
H A D | version.pass.cpp | 10 // <algorithm> 12 #include <algorithm>
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
H A D | PrivateKeyStub.java | 34 String algorithm = null; field in class:PrivateKeyStub 42 * @param algorithm 46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { argument 47 this.algorithm = algorithm; 53 * Returns algorithm 58 return algorithm;
|
H A D | PublicKeyStub.java | 36 String algorithm = null; field in class:PublicKeyStub 43 public PublicKeyStub(String algorithm, String format, byte[] encoded) { argument 44 this.algorithm = algorithm; 50 * returns algorithm 53 return algorithm;
|
/external/chromium_org/third_party/webrtc/base/ |
H A D | openssldigest.cc | 20 OpenSSLDigest::OpenSSLDigest(const std::string& algorithm) { argument 22 if (GetDigestEVP(algorithm, &md_)) { 58 bool OpenSSLDigest::GetDigestEVP(const std::string& algorithm, argument 61 if (algorithm == DIGEST_MD5) { 63 } else if (algorithm == DIGEST_SHA_1) { 65 } else if (algorithm == DIGEST_SHA_224) { 67 } else if (algorithm == DIGEST_SHA_256) { 69 } else if (algorithm == DIGEST_SHA_384) { 71 } else if (algorithm == DIGEST_SHA_512) { 84 std::string* algorithm) { 83 GetDigestName(const EVP_MD* md, std::string* algorithm) argument 109 GetDigestSize(const std::string& algorithm, size_t* length) argument [all...] |
H A D | sslfingerprint.cc | 23 const std::string& algorithm, const rtc::SSLIdentity* identity) { 28 return Create(algorithm, &(identity->certificate())); 32 const std::string& algorithm, const rtc::SSLCertificate* cert) { 36 algorithm, digest_val, sizeof(digest_val), &digest_len); 41 return new SSLFingerprint(algorithm, digest_val, digest_len); 45 const std::string& algorithm, const std::string& fingerprint) { 46 if (algorithm.empty() || !rtc::IsFips180DigestAlgorithm(algorithm)) 61 return new SSLFingerprint(algorithm, 67 const std::string& algorithm, cons 22 Create( const std::string& algorithm, const rtc::SSLIdentity* identity) argument 31 Create( const std::string& algorithm, const rtc::SSLCertificate* cert) argument 44 CreateFromRfc4572( const std::string& algorithm, const std::string& fingerprint) argument 66 SSLFingerprint( const std::string& algorithm, const uint8* digest_in, size_t digest_len) argument [all...] |
H A D | openssldigest.h | 23 // Creates an OpenSSLDigest with |algorithm| as the hash algorithm. 24 explicit OpenSSLDigest(const std::string& algorithm); 34 static bool GetDigestEVP(const std::string &algorithm, 38 std::string* algorithm); 40 static bool GetDigestSize(const std::string &algorithm,
|
H A D | sslfingerprint.h | 24 static SSLFingerprint* Create(const std::string& algorithm, 27 static SSLFingerprint* Create(const std::string& algorithm, 30 static SSLFingerprint* CreateFromRfc4572(const std::string& algorithm, 33 SSLFingerprint(const std::string& algorithm, const uint8* digest_in, 44 std::string algorithm; member in struct:rtc::SSLFingerprint
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/ |
H A D | DigestAlgorithmProvider.java | 12 String algorithm, 16 String mainName = "HMAC" + algorithm; 19 provider.addAlgorithm("Alg.Alias.Mac.HMAC-" + algorithm, mainName); 20 provider.addAlgorithm("Alg.Alias.Mac.HMAC/" + algorithm, mainName); 22 provider.addAlgorithm("Alg.Alias.KeyGenerator.HMAC-" + algorithm, mainName); 23 provider.addAlgorithm("Alg.Alias.KeyGenerator.HMAC/" + algorithm, mainName); 28 String algorithm, 31 String mainName = "HMAC" + algorithm; 10 addHMACAlgorithm( ConfigurableProvider provider, String algorithm, String algorithmClassName, String keyGeneratorClassName) argument 26 addHMACAlias( ConfigurableProvider provider, String algorithm, ASN1ObjectIdentifier oid) argument
|
/external/chromium_org/content/child/webcrypto/ |
H A D | structured_clone.cc | 38 const blink::WebCryptoKeyAlgorithm& algorithm) { 39 switch (algorithm.paramsType()) { 41 return CreateAlgorithm(algorithm.id()); 43 return CreateHmacImportAlgorithm(algorithm.hmacParams()->hash().id()); 46 algorithm.id(), algorithm.rsaHashedParams()->hash().id()); 63 const blink::WebCryptoKeyAlgorithm& algorithm, 65 if (algorithm.id() != key.algorithm().id()) 71 switch (algorithm 37 KeyAlgorithmToImportAlgorithm( const blink::WebCryptoKeyAlgorithm& algorithm) argument 62 ValidateDeserializedKey(const blink::WebCryptoKey& key, const blink::WebCryptoKeyAlgorithm& algorithm, blink::WebCryptoKeyType type) argument 109 DeserializeKeyForClone(const blink::WebCryptoKeyAlgorithm& algorithm, blink::WebCryptoKeyType type, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const CryptoData& key_data, blink::WebCryptoKey* key) argument [all...] |
H A D | algorithm_dispatch.cc | 22 Status DecryptDontCheckKeyUsage(const blink::WebCryptoAlgorithm& algorithm, argument 26 if (algorithm.id() != key.algorithm().id()) 30 Status status = GetAlgorithmImplementation(algorithm.id(), &impl); 34 return impl->Decrypt(algorithm, key, data, buffer); 37 Status EncryptDontCheckUsage(const blink::WebCryptoAlgorithm& algorithm, argument 41 if (algorithm.id() != key.algorithm().id()) 45 Status status = GetAlgorithmImplementation(algorithm.id(), &impl); 49 return impl->Encrypt(algorithm, ke 76 Encrypt(const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& data, std::vector<uint8_t>* buffer) argument 85 Decrypt(const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& data, std::vector<uint8_t>* buffer) argument 94 Digest(const blink::WebCryptoAlgorithm& algorithm, const CryptoData& data, std::vector<uint8_t>* buffer) argument 105 GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument 121 GenerateKeyPair(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask combined_usage_mask, blink::WebCryptoKey* public_key, blink::WebCryptoKey* private_key) argument 147 ImportKey(blink::WebCryptoKeyFormat format, const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument 188 Sign(const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& data, std::vector<uint8_t>* buffer) argument 205 Verify(const blink::WebCryptoAlgorithm& algorithm, const blink::WebCryptoKey& key, const CryptoData& signature, const CryptoData& data, bool* signature_match) argument 239 UnwrapKey(blink::WebCryptoKeyFormat format, const CryptoData& wrapped_key_data, const blink::WebCryptoKey& wrapping_key, const blink::WebCryptoAlgorithm& wrapping_algorithm, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument 277 CreateDigestor( blink::WebCryptoAlgorithmId algorithm) argument [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
H A D | X509PublicKey.java | 24 * the appropriate KeyFactory for the key algorithm is not available. 29 private final String algorithm; field in class:X509PublicKey 33 public X509PublicKey(String algorithm, byte[] encoded) { argument 34 this.algorithm = algorithm; 40 return algorithm; 55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) 63 result = prime * result + ((algorithm == null) ? 0 : algorithm [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | SecretKeySpecTest.java | 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that 45 String algorithm = "Algorithm"; 48 new SecretKeySpec(new byte[] { }, algorithm); 55 new SecretKeySpec(null, algorithm); 64 + "in the case of null algorithm."); 68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); 76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method 85 String algorithm = "Algorithm"; 88 new SecretKeySpec(new byte[] { }, 0, 0, algorithm); 95 new SecretKeySpec(null, 0, 0, algorithm); [all...] |
/external/chromium_org/chrome/browser/ui/views/frame/ |
H A D | system_menu_insertion_delegate_win.cc | 9 #include <algorithm>
|
/external/libcxx/test/algorithms/alg.modifying.operations/alg.swap/ |
H A D | iter_swap.pass.cpp | 10 // <algorithm> 17 #include <algorithm>
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
H A D | WebCryptoKey.cpp | 44 WebCryptoKeyPrivate(PassOwnPtr<WebCryptoKeyHandle> handle, WebCryptoKeyType type, bool extractable, const WebCryptoKeyAlgorithm& algorithm, WebCryptoKeyUsageMask usages) argument 48 , algorithm(algorithm) 51 ASSERT(!algorithm.isNull()); 57 const WebCryptoKeyAlgorithm algorithm; member in class:blink::WebCryptoKeyPrivate 61 WebCryptoKey WebCryptoKey::create(WebCryptoKeyHandle* handle, WebCryptoKeyType type, bool extractable, const WebCryptoKeyAlgorithm& algorithm, WebCryptoKeyUsageMask usages) argument 64 key.m_private = adoptRef(new WebCryptoKeyPrivate(adoptPtr(handle), type, extractable, algorithm, usages)); 91 const WebCryptoKeyAlgorithm& WebCryptoKey::algorithm() const function in class:blink::WebCryptoKey 94 return m_private->algorithm;
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
H A D | SubresourceIntegrityTest.cpp | 65 HashAlgorithm algorithm; local 68 EXPECT_FALSE(SubresourceIntegrity::parseIntegrityAttribute(attribute, integrity, algorithm)); 72 EXPECT_TRUE(SubresourceIntegrity::parseIntegrityAttribute(attribute, integrity, algorithm)); 74 EXPECT_EQ(algorithm, HashAlgorithmSha256); 78 EXPECT_TRUE(SubresourceIntegrity::parseIntegrityAttribute(attribute, integrity, algorithm)); 80 EXPECT_EQ(algorithm, HashAlgorithmSha256); 84 EXPECT_TRUE(SubresourceIntegrity::parseIntegrityAttribute(attribute, integrity, algorithm)); 86 EXPECT_EQ(algorithm, HashAlgorithmSha384); 90 EXPECT_TRUE(SubresourceIntegrity::parseIntegrityAttribute(attribute, integrity, algorithm)); 92 EXPECT_EQ(algorithm, HashAlgorithmSha51 [all...] |
/external/chromium_org/net/android/javatests/src/org/chromium/net/ |
H A D | AndroidKeyStoreTestUtil.java | 33 String algorithm = null; 36 algorithm = "RSA"; 39 algorithm = "DSA"; 42 algorithm = "EC"; 49 KeyFactory factory = KeyFactory.getInstance(algorithm); 55 Log.e(TAG, "Could not create " + algorithm + " factory instance!"); 58 Log.e(TAG, "Could not load " + algorithm + " private key from bytes!");
|
/external/chromium_org/crypto/ |
H A D | symmetric_key_openssl.cc | 10 #include <algorithm> 24 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, argument 26 DCHECK_EQ(AES, algorithm); 50 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, argument 55 DCHECK(algorithm == AES || algorithm == HMAC_SHA1); 57 if (algorithm == AES) { 84 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, argument 86 if (algorithm == AES) {
|