/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/ |
D | DefaultJcaJceHelper.java | 29 String algorithm) in createCipher() argument 32 return Cipher.getInstance(algorithm); in createCipher() 35 public Mac createMac(String algorithm) in createMac() argument 38 return Mac.getInstance(algorithm); in createMac() 41 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 44 return KeyAgreement.getInstance(algorithm); in createKeyAgreement() 47 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 50 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator() 53 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 56 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters() [all …]
|
D | NamedJcaJceHelper.java | 36 String algorithm) in createCipher() argument 39 return Cipher.getInstance(algorithm, providerName); in createCipher() 42 public Mac createMac(String algorithm) in createMac() argument 45 return Mac.getInstance(algorithm, providerName); in createMac() 48 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 51 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement() 54 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 57 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator() 60 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 63 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters() [all …]
|
D | ProviderJcaJceHelper.java | 36 String algorithm) in createCipher() argument 39 return Cipher.getInstance(algorithm, provider); in createCipher() 42 public Mac createMac(String algorithm) in createMac() argument 45 return Mac.getInstance(algorithm, provider); in createMac() 48 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 51 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement() 54 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 57 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator() 60 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 63 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/ |
D | DefaultJcaJceHelper.java | 33 String algorithm) in createCipher() argument 36 return Cipher.getInstance(algorithm); in createCipher() 39 public Mac createMac(String algorithm) in createMac() argument 42 return Mac.getInstance(algorithm); in createMac() 45 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 48 return KeyAgreement.getInstance(algorithm); in createKeyAgreement() 51 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 54 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator() 57 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 60 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters() [all …]
|
D | NamedJcaJceHelper.java | 38 String algorithm) in createCipher() argument 41 return Cipher.getInstance(algorithm, providerName); in createCipher() 44 public Mac createMac(String algorithm) in createMac() argument 47 return Mac.getInstance(algorithm, providerName); in createMac() 50 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 53 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement() 56 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 59 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator() 62 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 65 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters() [all …]
|
D | ProviderJcaJceHelper.java | 38 String algorithm) in createCipher() argument 41 return Cipher.getInstance(algorithm, provider); in createCipher() 44 public Mac createMac(String algorithm) in createMac() argument 47 return Mac.getInstance(algorithm, provider); in createMac() 50 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 53 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement() 56 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 59 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator() 62 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 65 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters() [all …]
|
D | JcaJceHelper.java | 30 String algorithm) in createCipher() argument 33 Mac createMac(String algorithm) in createMac() argument 36 KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument 39 AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument 42 AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument 45 KeyGenerator createKeyGenerator(String algorithm) in createKeyGenerator() argument 48 KeyFactory createKeyFactory(String algorithm) in createKeyFactory() argument 51 SecretKeyFactory createSecretKeyFactory(String algorithm) in createSecretKeyFactory() argument 54 KeyPairGenerator createKeyPairGenerator(String algorithm) in createKeyPairGenerator() argument 57 MessageDigest createDigest(String algorithm) in createDigest() argument [all …]
|
/external/grpc-grpc/src/core/lib/compression/ |
D | compression.cc | 33 grpc_compression_algorithm algorithm) { in grpc_compression_algorithm_is_message() argument 34 return (algorithm >= GRPC_COMPRESS_DEFLATE && algorithm <= GRPC_COMPRESS_GZIP) in grpc_compression_algorithm_is_message() 39 int grpc_compression_algorithm_is_stream(grpc_compression_algorithm algorithm) { in grpc_compression_algorithm_is_stream() argument 40 return (algorithm == GRPC_COMPRESS_STREAM_GZIP) ? 1 : 0; in grpc_compression_algorithm_is_stream() 44 grpc_compression_algorithm* algorithm) { in grpc_compression_algorithm_parse() argument 46 *algorithm = GRPC_COMPRESS_NONE; in grpc_compression_algorithm_parse() 49 *algorithm = GRPC_COMPRESS_DEFLATE; in grpc_compression_algorithm_parse() 52 *algorithm = GRPC_COMPRESS_GZIP; in grpc_compression_algorithm_parse() 55 *algorithm = GRPC_COMPRESS_STREAM_GZIP; in grpc_compression_algorithm_parse() 63 int grpc_compression_algorithm_name(grpc_compression_algorithm algorithm, in grpc_compression_algorithm_name() argument [all …]
|
D | compression_internal.cc | 52 grpc_message_compression_algorithm algorithm) { in grpc_message_compression_encoding_mdelem() argument 53 switch (algorithm) { in grpc_message_compression_encoding_mdelem() 67 grpc_stream_compression_algorithm algorithm) { in grpc_stream_compression_encoding_mdelem() argument 68 switch (algorithm) { in grpc_stream_compression_encoding_mdelem() 126 grpc_compression_algorithm* algorithm, in grpc_compression_algorithm_from_message_stream_compression_algorithm() argument 131 *algorithm = GRPC_COMPRESS_NONE; in grpc_compression_algorithm_from_message_stream_compression_algorithm() 137 *algorithm = GRPC_COMPRESS_NONE; in grpc_compression_algorithm_from_message_stream_compression_algorithm() 140 *algorithm = GRPC_COMPRESS_STREAM_GZIP; in grpc_compression_algorithm_from_message_stream_compression_algorithm() 143 *algorithm = GRPC_COMPRESS_NONE; in grpc_compression_algorithm_from_message_stream_compression_algorithm() 149 *algorithm = GRPC_COMPRESS_NONE; in grpc_compression_algorithm_from_message_stream_compression_algorithm() [all …]
|
/external/webrtc/webrtc/base/ |
D | openssldigest.cc | 20 OpenSSLDigest::OpenSSLDigest(const std::string& algorithm) { in OpenSSLDigest() argument 22 if (GetDigestEVP(algorithm, &md_)) { in OpenSSLDigest() 58 bool OpenSSLDigest::GetDigestEVP(const std::string& algorithm, in GetDigestEVP() argument 61 if (algorithm == DIGEST_MD5) { in GetDigestEVP() 63 } else if (algorithm == DIGEST_SHA_1) { in GetDigestEVP() 65 } else if (algorithm == DIGEST_SHA_224) { in GetDigestEVP() 67 } else if (algorithm == DIGEST_SHA_256) { in GetDigestEVP() 69 } else if (algorithm == DIGEST_SHA_384) { in GetDigestEVP() 71 } else if (algorithm == DIGEST_SHA_512) { in GetDigestEVP() 84 std::string* algorithm) { in GetDigestName() argument [all …]
|
D | sslfingerprint.cc | 23 const std::string& algorithm, const rtc::SSLIdentity* identity) { in Create() argument 28 return Create(algorithm, &(identity->certificate())); in Create() 32 const std::string& algorithm, const rtc::SSLCertificate* cert) { in Create() argument 36 algorithm, digest_val, sizeof(digest_val), &digest_len); in Create() 41 return new SSLFingerprint(algorithm, digest_val, digest_len); in Create() 45 const std::string& algorithm, const std::string& fingerprint) { in CreateFromRfc4572() argument 46 if (algorithm.empty() || !rtc::IsFips180DigestAlgorithm(algorithm)) in CreateFromRfc4572() 61 return new SSLFingerprint(algorithm, reinterpret_cast<uint8_t*>(value), in CreateFromRfc4572() 65 SSLFingerprint::SSLFingerprint(const std::string& algorithm, in SSLFingerprint() argument 68 : algorithm(algorithm) { in SSLFingerprint() [all …]
|
/external/grpc-grpc/test/core/compression/ |
D | compression_test.cc | 41 grpc_compression_algorithm algorithm; in test_compression_algorithm_parse() local 43 grpc_slice_from_static_string(valid_name), &algorithm); in test_compression_algorithm_parse() 45 GPR_ASSERT(algorithm == valid_algorithms[i]); in test_compression_algorithm_parse() 50 grpc_compression_algorithm algorithm; in test_compression_algorithm_parse() local 53 grpc_slice_from_static_string(invalid_name), &algorithm); in test_compression_algorithm_parse() 228 grpc_compression_algorithm algorithm; in test_compression_enable_disable_algorithm() local 233 for (algorithm = GRPC_COMPRESS_NONE; in test_compression_enable_disable_algorithm() 234 algorithm < GRPC_COMPRESS_ALGORITHMS_COUNT; in test_compression_enable_disable_algorithm() 235 algorithm = static_cast<grpc_compression_algorithm>( in test_compression_enable_disable_algorithm() 236 static_cast<int>(algorithm) + 1)) { in test_compression_enable_disable_algorithm() [all …]
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/ |
D | CipherTest.java | 125 private static boolean isSupported(String algorithm, String provider) { in isSupported() argument 126 if (algorithm.equals("RC2")) { in isSupported() 129 if (algorithm.equals("PBEWITHMD5ANDRC2")) { in isSupported() 132 if (algorithm.startsWith("PBEWITHSHA1ANDRC2")) { in isSupported() 135 if (algorithm.equals("PBEWITHSHAAND40BITRC2-CBC")) { in isSupported() 138 if (algorithm.equals("PBEWITHSHAAND128BITRC2-CBC")) { in isSupported() 141 if (algorithm.equals("PBEWITHSHAANDTWOFISH-CBC")) { in isSupported() 145 if (algorithm.equals("PBEWITHMD5ANDTRIPLEDES")) { in isSupported() 151 (algorithm.equals("AES/CFB/PKCS5PADDING") in isSupported() 152 || algorithm.equals("AES/CFB/PKCS7PADDING") in isSupported() [all …]
|
D | KeyGeneratorTest.java | 95 String algorithm = service.getAlgorithm(); in test_getInstance() local 98 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm); in test_getInstance() 99 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance() 103 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); in test_getInstance() 104 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance() 109 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName()); in test_getInstance() 110 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance() 114 throw new Exception("Problem testing KeyPairGenerator." + algorithm, e); in test_getInstance() 122 private static void putKeySize(String algorithm, int keySize) { in putKeySize() argument 123 algorithm = algorithm.toUpperCase(); in putKeySize() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/ |
D | CipherTest.java | 121 private static boolean isSupported(String algorithm, String provider) { in isSupported() argument 122 if (algorithm.equals("RC2")) { in isSupported() 125 if (algorithm.equals("PBEWITHMD5ANDRC2")) { in isSupported() 128 if (algorithm.startsWith("PBEWITHSHA1ANDRC2")) { in isSupported() 131 if (algorithm.equals("PBEWITHSHAAND40BITRC2-CBC")) { in isSupported() 134 if (algorithm.equals("PBEWITHSHAAND128BITRC2-CBC")) { in isSupported() 137 if (algorithm.equals("PBEWITHSHAANDTWOFISH-CBC")) { in isSupported() 141 if (algorithm.equals("PBEWITHMD5ANDTRIPLEDES")) { in isSupported() 147 (algorithm.equals("AES/CFB/PKCS5PADDING") in isSupported() 148 || algorithm.equals("AES/CFB/PKCS7PADDING") in isSupported() [all …]
|
D | KeyGeneratorTest.java | 91 String algorithm = service.getAlgorithm(); in test_getInstance() local 94 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm); in test_getInstance() 95 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance() 99 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); in test_getInstance() 100 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance() 105 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName()); in test_getInstance() 106 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance() 110 throw new Exception("Problem testing KeyPairGenerator." + algorithm, e); in test_getInstance() 118 private static void putKeySize(String algorithm, int keySize) { in putKeySize() argument 119 algorithm = algorithm.toUpperCase(); in putKeySize() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | MessageDigestTest.java | 80 String algorithm = service.getAlgorithm(); in test_getInstance() local 83 MessageDigest md1 = MessageDigest.getInstance(algorithm); in test_getInstance() 84 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance() 88 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); in test_getInstance() 89 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance() 94 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); in test_getInstance() 95 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance() 99 throw new Exception("Problem testing MessageDigest." + algorithm in test_getInstance() 108 private static void putExpectation(String algorithm, String inputName, byte[] expected) { in putExpectation() argument 109 algorithm = algorithm.toUpperCase(); in putExpectation() [all …]
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | MessageDigestTest.java | 84 String algorithm = service.getAlgorithm(); in test_getInstance() local 87 MessageDigest md1 = MessageDigest.getInstance(algorithm); in test_getInstance() 88 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance() 92 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); in test_getInstance() 93 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance() 98 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); in test_getInstance() 99 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance() 103 throw new Exception("Problem testing MessageDigest." + algorithm in test_getInstance() 112 private static void putExpectation(String algorithm, String inputName, byte[] expected) { in putExpectation() argument 113 algorithm = algorithm.toUpperCase(); in putExpectation() [all …]
|
/external/ImageMagick/Magick++/demo/ |
D | zoom.cpp | 76 std::string algorithm(argv[argv_index]); in main() local 77 if (algorithm.compare("point") == 0) in main() 79 else if (algorithm.compare("box") == 0) in main() 81 else if (algorithm.compare("triangle") == 0) in main() 83 else if (algorithm.compare("hermite") == 0) in main() 85 else if (algorithm.compare("hanning") == 0) in main() 87 else if (algorithm.compare("hamming") == 0) in main() 89 else if (algorithm.compare("blackman") == 0) in main() 91 else if (algorithm.compare("gaussian") == 0) in main() 93 else if (algorithm.compare("quadratic") == 0) in main() [all …]
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | JcaContentVerifierProviderBuilder.java | 81 public ContentVerifier get(AlgorithmIdentifier algorithm) in build() argument 87 sig = helper.createSignature(algorithm); in build() 96 Signature rawSig = createRawSig(algorithm, certificate.getPublicKey()); in build() 100 return new RawSigVerifier(algorithm, sig, rawSig); in build() 104 return new SigVerifier(algorithm, sig); in build() 125 public ContentVerifier get(AlgorithmIdentifier algorithm) 128 Signature sig = createSignature(algorithm, publicKey); 130 Signature rawSig = createRawSig(algorithm, publicKey); 134 return new RawSigVerifier(algorithm, sig, rawSig); 138 return new SigVerifier(algorithm, sig); [all …]
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | X509PublicKey.java | 29 private final String algorithm; field in X509PublicKey 33 X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument 34 this.algorithm = algorithm; in X509PublicKey() 40 return algorithm; in getAlgorithm() 55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString() 63 result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode()); in hashCode() 77 if (algorithm == null) { in equals() 78 if (other.algorithm != null) in equals() 80 } else if (!algorithm.equals(other.algorithm)) in equals()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | X509PublicKey.java | 30 private final String algorithm; field in X509PublicKey 35 X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument 36 this.algorithm = algorithm; in X509PublicKey() 42 return algorithm; in getAlgorithm() 57 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString() 65 result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode()); in hashCode() 79 if (algorithm == null) { in equals() 80 if (other.algorithm != null) in equals() 82 } else if (!algorithm.equals(other.algorithm)) in equals()
|
/external/vboot_reference/host/lib/ |
D | signature_digest.c | 17 uint8_t* PrependDigestInfo(unsigned int algorithm, uint8_t* digest) { in PrependDigestInfo() argument 18 const int digest_size = hash_size_map[algorithm]; in PrependDigestInfo() 19 const int digestinfo_size = digestinfo_size_map[algorithm]; in PrependDigestInfo() 20 const uint8_t* digestinfo = hash_digestinfo_map[algorithm]; in PrependDigestInfo() 28 unsigned int algorithm) { in SignatureDigest() argument 32 if (algorithm >= kNumAlgorithms) { in SignatureDigest() 34 } else if ((digest = DigestBuf(buf, len, algorithm))) { in SignatureDigest() 35 info_digest = PrependDigestInfo(algorithm, digest); in SignatureDigest() 42 unsigned int algorithm) { in SignatureBuf() argument 46 uint8_t* signature_digest = SignatureDigest(buf, len, algorithm); in SignatureBuf() [all …]
|
D | host_key.c | 23 VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm) { in PrivateKeyReadPem() argument 29 if (algorithm >= kNumAlgorithms) { in PrivateKeyReadPem() 55 key->algorithm = algorithm; in PrivateKeyReadPem() 90 if (1 != fwrite(&key->algorithm, sizeof(key->algorithm), 1, f)) { in PrivateKeyWrite() 128 key->algorithm = *(typeof(key->algorithm) *)buffer; in PrivateKeyRead() 129 start = buffer + sizeof(key->algorithm); in PrivateKeyRead() 132 filelen - sizeof(key->algorithm)); in PrivateKeyRead() 147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm, in PublicKeyAlloc() argument 153 key->algorithm = algorithm; in PublicKeyAlloc() 160 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm, in PublicKeyReadKeyb() argument [all …]
|
/external/libcups/cups/ |
D | hash.c | 43 cupsHashData(const char *algorithm, /* I - Algorithm name */ in cupsHashData() argument 49 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0) in cupsHashData() 56 if (!strcmp(algorithm, "sha")) in cupsHashData() 73 else if (!strcmp(algorithm, "sha2-224")) in cupsHashData() 86 else if (!strcmp(algorithm, "sha2-256")) in cupsHashData() 99 else if (!strcmp(algorithm, "sha2-384")) in cupsHashData() 112 else if (!strcmp(algorithm, "sha2-512")) in cupsHashData() 125 else if (!strcmp(algorithm, "sha2-512_224")) in cupsHashData() 146 else if (!strcmp(algorithm, "sha2-512_256")) in cupsHashData() 174 if (!strcmp(algorithm, "sha")) in cupsHashData() [all …]
|