Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 1394) sorted by relevance

12345678910>>...56

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java29 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 …]
DProviderJcaJceHelper.java36 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 …]
DNamedJcaJceHelper.java36 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 …]
DJcaJceHelper.java28 String algorithm) in createCipher() argument
31 Mac createMac(String algorithm) in createMac() argument
34 KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
37 AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
40 AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
43 KeyGenerator createKeyGenerator(String algorithm) in createKeyGenerator() argument
46 KeyFactory createKeyFactory(String algorithm) in createKeyFactory() argument
49 SecretKeyFactory createSecretKeyFactory(String algorithm) in createSecretKeyFactory() argument
52 KeyPairGenerator createKeyPairGenerator(String algorithm) in createKeyPairGenerator() argument
55 MessageDigest createDigest(String algorithm) in createDigest() argument
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java33 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 …]
DNamedJcaJceHelper.java38 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 …]
DProviderJcaJceHelper.java38 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 …]
DJcaJceHelper.java30 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/
Dcompression.cc33 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 …]
Dcompression_internal.cc52 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/
Dopenssldigest.cc20 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 …]
Dsslfingerprint.cc23 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/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DCipherTest.java118 private static boolean isSupported(String algorithm, String provider) { in isSupported() argument
119 if (algorithm.equals("RC2")) { in isSupported()
122 if (algorithm.equals("PBEWITHMD5ANDRC2")) { in isSupported()
125 if (algorithm.startsWith("PBEWITHSHA1ANDRC2")) { in isSupported()
128 if (algorithm.equals("PBEWITHSHAAND40BITRC2-CBC")) { in isSupported()
131 if (algorithm.equals("PBEWITHSHAAND128BITRC2-CBC")) { in isSupported()
134 if (algorithm.equals("PBEWITHSHAANDTWOFISH-CBC")) { in isSupported()
138 if (algorithm.equals("PBEWITHMD5ANDTRIPLEDES")) { in isSupported()
144 (algorithm.equals("AES/CFB/PKCS5PADDING") in isSupported()
145 || algorithm.equals("AES/CFB/PKCS7PADDING") in isSupported()
[all …]
DKeyGeneratorTest.java76 public void test(Provider provider, String algorithm) throws Exception { in test_getInstance()
78 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm); in test_getInstance()
79 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance()
83 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); in test_getInstance()
84 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance()
89 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName()); in test_getInstance()
90 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance()
99 private static void putKeySize(String algorithm, int keySize) { in putKeySize() argument
100 algorithm = algorithm.toUpperCase(); in putKeySize()
101 List<Integer> keySizes = KEY_SIZES.get(algorithm); in putKeySize()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DCipherTest.java114 private static boolean isSupported(String algorithm, String provider) { in isSupported() argument
115 if (algorithm.equals("RC2")) { in isSupported()
118 if (algorithm.equals("PBEWITHMD5ANDRC2")) { in isSupported()
121 if (algorithm.startsWith("PBEWITHSHA1ANDRC2")) { in isSupported()
124 if (algorithm.equals("PBEWITHSHAAND40BITRC2-CBC")) { in isSupported()
127 if (algorithm.equals("PBEWITHSHAAND128BITRC2-CBC")) { in isSupported()
130 if (algorithm.equals("PBEWITHSHAANDTWOFISH-CBC")) { in isSupported()
134 if (algorithm.equals("PBEWITHMD5ANDTRIPLEDES")) { in isSupported()
140 (algorithm.equals("AES/CFB/PKCS5PADDING") in isSupported()
141 || algorithm.equals("AES/CFB/PKCS7PADDING") in isSupported()
[all …]
/external/grpc-grpc/test/core/compression/
Dcompression_test.cc41 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/common/src/test/java/org/conscrypt/java/security/
DMessageDigestTest.java66 public void test(Provider provider, String algorithm) throws Exception { in test_getInstance()
68 MessageDigest md1 = MessageDigest.getInstance(algorithm); in test_getInstance()
69 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance()
73 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); in test_getInstance()
74 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance()
79 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); in test_getInstance()
80 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance()
89 private static void putExpectation(String algorithm, String inputName, byte[] expected) { in putExpectation() argument
90 algorithm = algorithm.toUpperCase(); in putExpectation()
91 Map<String, byte[]> expectations = EXPECTATIONS.get(algorithm); in putExpectation()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DX509PublicKey.java29 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/ImageMagick/Magick++/demo/
Dzoom.cpp76 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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DX509PublicKey.java30 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/libcups/cups/
Dhash.c45 cupsHashData(const char *algorithm, /* I - Algorithm name */ in cupsHashData() argument
51 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0) in cupsHashData()
58 if (!strcmp(algorithm, "md5")) in cupsHashData()
75 else if (!strcmp(algorithm, "sha")) in cupsHashData()
92 else if (!strcmp(algorithm, "sha2-224")) in cupsHashData()
105 else if (!strcmp(algorithm, "sha2-256")) in cupsHashData()
118 else if (!strcmp(algorithm, "sha2-384")) in cupsHashData()
131 else if (!strcmp(algorithm, "sha2-512")) in cupsHashData()
144 else if (!strcmp(algorithm, "sha2-512_224")) in cupsHashData()
165 else if (!strcmp(algorithm, "sha2-512_256")) in cupsHashData()
[all …]
/external/vboot_reference/host/lib/
Dsignature_digest.c17 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 …]
Dhost_key.c23 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/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaContentVerifierProviderBuilder.java81 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/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DMessageDigestTest.java69 public void test(Provider provider, String algorithm) throws Exception { in test_getInstance()
71 MessageDigest md1 = MessageDigest.getInstance(algorithm); in test_getInstance()
72 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance()
76 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); in test_getInstance()
77 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance()
82 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); in test_getInstance()
83 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance()
92 private static void putExpectation(String algorithm, String inputName, byte[] expected) { in putExpectation() argument
93 algorithm = algorithm.toUpperCase(); in putExpectation()
94 Map<String, byte[]> expectations = EXPECTATIONS.get(algorithm); in putExpectation()
[all …]

12345678910>>...56