Home
last modified time | relevance | path

Searched full:algorithm (Results 1 – 25 of 7939) sorted by relevance

12345678910>>...318

/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java39 String algorithm) in createCipher() argument
42 return Cipher.getInstance(algorithm); in createCipher()
45 public Mac createMac(String algorithm) in createMac() argument
48 return Mac.getInstance(algorithm); in createMac()
51 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
54 return KeyAgreement.getInstance(algorithm); in createKeyAgreement()
57 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
60 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator()
63 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
66 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters()
[all …]
DProviderJcaJceHelper.java46 String algorithm) in createCipher() argument
49 return Cipher.getInstance(algorithm, provider); in createCipher()
52 public Mac createMac(String algorithm) in createMac() argument
55 return Mac.getInstance(algorithm, provider); in createMac()
58 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
61 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement()
64 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
67 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator()
70 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
73 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters()
[all …]
DNamedJcaJceHelper.java46 String algorithm) in createCipher() argument
49 return Cipher.getInstance(algorithm, providerName); in createCipher()
52 public Mac createMac(String algorithm) in createMac() argument
55 return Mac.getInstance(algorithm, providerName); in createMac()
58 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
61 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement()
64 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
67 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator()
70 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
73 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java37 String algorithm) in createCipher() argument
40 return Cipher.getInstance(algorithm); in createCipher()
43 public Mac createMac(String algorithm) in createMac() argument
46 return Mac.getInstance(algorithm); in createMac()
49 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
52 return KeyAgreement.getInstance(algorithm); in createKeyAgreement()
55 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
58 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator()
61 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
64 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters()
[all …]
DProviderJcaJceHelper.java44 String algorithm) in createCipher() argument
47 return Cipher.getInstance(algorithm, provider); in createCipher()
50 public Mac createMac(String algorithm) in createMac() argument
53 return Mac.getInstance(algorithm, provider); in createMac()
56 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
59 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement()
62 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
65 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator()
68 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
71 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters()
[all …]
DNamedJcaJceHelper.java44 String algorithm) in createCipher() argument
47 return Cipher.getInstance(algorithm, providerName); in createCipher()
50 public Mac createMac(String algorithm) in createMac() argument
53 return Mac.getInstance(algorithm, providerName); in createMac()
56 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
59 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement()
62 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
65 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator()
68 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
71 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java39 String algorithm) in createCipher() argument
42 return Cipher.getInstance(algorithm); in createCipher()
45 public Mac createMac(String algorithm) in createMac() argument
48 return Mac.getInstance(algorithm); in createMac()
51 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
54 return KeyAgreement.getInstance(algorithm); in createKeyAgreement()
57 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
60 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator()
63 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
66 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters()
[all …]
DProviderJcaJceHelper.java46 String algorithm) in createCipher() argument
49 return Cipher.getInstance(algorithm, provider); in createCipher()
52 public Mac createMac(String algorithm) in createMac() argument
55 return Mac.getInstance(algorithm, provider); in createMac()
58 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
61 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement()
64 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
67 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator()
70 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
73 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters()
[all …]
DNamedJcaJceHelper.java46 String algorithm) in createCipher() argument
49 return Cipher.getInstance(algorithm, providerName); in createCipher()
52 public Mac createMac(String algorithm) in createMac() argument
55 return Mac.getInstance(algorithm, providerName); in createMac()
58 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
61 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement()
64 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
67 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator()
70 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
73 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters()
[all …]
/external/ltp/include/
Dtst_af_alg.h21 * Create an AF_ALG algorithm socket.
23 * This creates an AF_ALG algorithm socket that is initially not bound to any
24 * particular algorithm. On failure, tst_brk() is called with TCONF if the
27 * @return a new AF_ALG algorithm socket
32 * Bind an AF_ALG algorithm socket to an algorithm.
34 * @param algfd An AF_ALG algorithm socket
35 * @param addr A structure which specifies the algorithm to use
38 * specified algorithm, otherwise TBROK.
43 * Bind an AF_ALG algorithm socket to an algorithm.
45 * @param algfd An AF_ALG algorithm socket
[all …]
/external/python/google-api-python-client/docs/dyn/
Ddisplayvideo_v1.customBiddingAlgorithms.html87 …lass="firstline">Creates a new custom bidding algorithm. Returns the newly created custom bidding
90 <p class="firstline">Gets a custom bidding algorithm.</p>
99 …s="firstline">Updates an existing custom bidding algorithm. Returns the updated custom bidding alg…
111 …<pre>Creates a new custom bidding algorithm. Returns the newly created custom bidding algorithm if…
117 { # A single custom bidding algorithm.
118 … String&quot;, # Immutable. The unique ID of the advertiser that owns the custom bidding algorithm.
119 …quot;A String&quot;, # Output only. The unique ID of the custom bidding algorithm. Assigned by the…
120 …gAlgorithmState&quot;: &quot;A String&quot;, # Output only. The status of custom bidding algorithm.
121 …rithmType&quot;: &quot;A String&quot;, # Required. Immutable. The type of custom bidding algorithm.
122 …quot;A String&quot;, # Required. The display name of the custom bidding algorithm. Must be UTF-8 e…
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DSymmetricAlgorithmProvider.java13 String algorithm,
17 provider.addAlgorithm("Mac." + algorithm + "-CMAC", algorithmClassName);
18 provider.addAlgorithm("Alg.Alias.Mac." + algorithm + "CMAC", algorithm + "-CMAC");
20 provider.addAlgorithm("KeyGenerator." + algorithm + "-CMAC", keyGeneratorClassName);
21 provider.addAlgorithm("Alg.Alias.KeyGenerator." + algorithm + "CMAC", algorithm + "-CMAC");
26 String algorithm,
30 provider.addAlgorithm("Mac." + algorithm + "-GMAC", algorithmClassName);
31 provider.addAlgorithm("Alg.Alias.Mac." + algorithm + "GMAC", algorithm + "-GMAC");
33 provider.addAlgorithm("KeyGenerator." + algorithm + "-GMAC", keyGeneratorClassName);
34 provider.addAlgorithm("Alg.Alias.KeyGenerator." + algorithm + "GMAC", algorithm + "-GMAC");
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/
DSymmetricAlgorithmProvider.java14 String algorithm,
18 provider.addAlgorithm("Mac." + algorithm + "-CMAC", algorithmClassName);
19 provider.addAlgorithm("Alg.Alias.Mac." + algorithm + "CMAC", algorithm + "-CMAC");
21 provider.addAlgorithm("KeyGenerator." + algorithm + "-CMAC", keyGeneratorClassName);
22 provider.addAlgorithm("Alg.Alias.KeyGenerator." + algorithm + "CMAC", algorithm + "-CMAC");
27 String algorithm,
31 provider.addAlgorithm("Mac." + algorithm + "-GMAC", algorithmClassName);
32 provider.addAlgorithm("Alg.Alias.Mac." + algorithm + "GMAC", algorithm + "-GMAC");
34 provider.addAlgorithm("KeyGenerator." + algorithm + "-GMAC", keyGeneratorClassName);
35 provider.addAlgorithm("Alg.Alias.KeyGenerator." + algorithm + "GMAC", algorithm + "-GMAC");
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/
DSymmetricAlgorithmProvider.java14 String algorithm,
18 provider.addAlgorithm("Mac." + algorithm + "-CMAC", algorithmClassName);
19 provider.addAlgorithm("Alg.Alias.Mac." + algorithm + "CMAC", algorithm + "-CMAC");
21 provider.addAlgorithm("KeyGenerator." + algorithm + "-CMAC", keyGeneratorClassName);
22 provider.addAlgorithm("Alg.Alias.KeyGenerator." + algorithm + "CMAC", algorithm + "-CMAC");
27 String algorithm,
31 provider.addAlgorithm("Mac." + algorithm + "-GMAC", algorithmClassName);
32 provider.addAlgorithm("Alg.Alias.Mac." + algorithm + "GMAC", algorithm + "-GMAC");
34 provider.addAlgorithm("KeyGenerator." + algorithm + "-GMAC", keyGeneratorClassName);
35 provider.addAlgorithm("Alg.Alias.KeyGenerator." + algorithm + "GMAC", algorithm + "-GMAC");
[all …]
/external/rust/crates/ring/src/
Dagreement.rs72 /// A key agreement algorithm.
73 pub struct Algorithm { struct
82 derive_debug_via_field!(Algorithm, curve); argument
84 impl Eq for Algorithm {} implementation
85 impl PartialEq for Algorithm { implementation
86 fn eq(&self, other: &Algorithm) -> bool { in eq()
96 algorithm: &'static Algorithm, field
102 algorithm
106 /// Generate a new ephemeral private key for the given algorithm.
108 alg: &'static Algorithm, in generate() argument
[all …]
Ddigest.rs15 //! SHA-2 and the legacy SHA-1 digest algorithm.
46 /// The context's algorithm.
47 pub algorithm: &'static Algorithm, field
53 pub(crate) fn new(algorithm: &'static Algorithm) -> Self { in new()
55 state: algorithm.initial_state, in new()
57 algorithm, in new()
64 let num_blocks = input.len() / self.algorithm.block_len; in update()
65 assert_eq!(num_blocks * self.algorithm.block_len, input.len()); in update()
68 (self.algorithm.block_data_order)(&mut self.state, input.as_ptr(), num_blocks); in update()
78 let block_len = self.algorithm.block_len; in finish()
[all …]
Dhkdf.rs23 /// An HKDF algorithm.
25 pub struct Algorithm(hmac::Algorithm); struct
27 impl Algorithm { implementation
28 /// The underlying HMAC algorithm.
30 pub fn hmac_algorithm(&self) -> hmac::Algorithm { in hmac_algorithm() argument
36 pub static HKDF_SHA1_FOR_LEGACY_USE_ONLY: Algorithm =
37 Algorithm(hmac::HMAC_SHA1_FOR_LEGACY_USE_ONLY);
40 pub static HKDF_SHA256: Algorithm = Algorithm(hmac::HMAC_SHA256);
43 pub static HKDF_SHA384: Algorithm = Algorithm(hmac::HMAC_SHA384);
46 pub static HKDF_SHA512: Algorithm = Algorithm(hmac::HMAC_SHA512);
[all …]
/external/rust/crates/ring/src/aead/
Dquic.rs28 algorithm: &'static Algorithm, field
37 impl From<hkdf::Okm<'_, &'static Algorithm>> for HeaderProtectionKey {
38 fn from(okm: hkdf::Okm<&'static Algorithm>) -> Self { in from()
40 let algorithm = *okm.len(); in from() localVariable
41 let key_bytes = &mut key_bytes[..algorithm.key_len()]; in from()
43 Self::new(algorithm, key_bytes).unwrap() in from()
50 /// `key_bytes` must be exactly `algorithm.key_len` bytes long.
52 algorithm: &'static Algorithm, in new() argument
56 inner: (algorithm.init)(key_bytes, cpu::features())?, in new()
57 algorithm, in new()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/
DMacTest.java75 String algorithm = entry[ALGORITHM_INDEX]; in knownAnswerTest() local
86 algorithm, key, msg, expected); in knownAnswerTest()
89 byte[] macBytes = generateMacUsingUpdate(algorithm, secretKey, msgBytes); in knownAnswerTest()
94 macBytes = generateMacUsingFinal(algorithm, secretKey, msgBytes); in knownAnswerTest()
100 macBytes = generateMac(algorithm, secretKey, nondirectBuffer); in knownAnswerTest()
108 macBytes = generateMac(algorithm, secretKey, directBuffer); in knownAnswerTest()
114 macBytes = generateMac(algorithm, secretKey, split(nondirectBuffer)); in knownAnswerTest()
120 macBytes = generateMac(algorithm, secretKey, split(directBuffer)); in knownAnswerTest()
125 macBytes = generateReusingMac(algorithm, keyBytes, msgBytes); in knownAnswerTest()
139 public void test(final Provider provider, final String algorithm) throws Exception { in serviceCreation()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/
DMacTest.java79 String algorithm = entry[ALGORITHM_INDEX]; in knownAnswerTest() local
90 algorithm, key, msg, expected); in knownAnswerTest()
93 byte[] macBytes = generateMacUsingUpdate(algorithm, secretKey, msgBytes); in knownAnswerTest()
98 macBytes = generateMacUsingFinal(algorithm, secretKey, msgBytes); in knownAnswerTest()
104 macBytes = generateMac(algorithm, secretKey, nondirectBuffer); in knownAnswerTest()
112 macBytes = generateMac(algorithm, secretKey, directBuffer); in knownAnswerTest()
118 macBytes = generateMac(algorithm, secretKey, split(nondirectBuffer)); in knownAnswerTest()
124 macBytes = generateMac(algorithm, secretKey, split(directBuffer)); in knownAnswerTest()
129 macBytes = generateReusingMac(algorithm, keyBytes, msgBytes); in knownAnswerTest()
144 public void test(final Provider provider, final String algorithm) in serviceCreation()
[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 …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/compression/
Dcompression.cc34 grpc_compression_algorithm algorithm) { in grpc_compression_algorithm_is_message() argument
35 return (algorithm >= GRPC_COMPRESS_DEFLATE && algorithm <= GRPC_COMPRESS_GZIP) in grpc_compression_algorithm_is_message()
40 int grpc_compression_algorithm_is_stream(grpc_compression_algorithm algorithm) { in grpc_compression_algorithm_is_stream() argument
41 return (algorithm == GRPC_COMPRESS_STREAM_GZIP) ? 1 : 0; in grpc_compression_algorithm_is_stream()
45 grpc_compression_algorithm* algorithm) { in grpc_compression_algorithm_parse() argument
47 *algorithm = GRPC_COMPRESS_NONE; in grpc_compression_algorithm_parse()
50 *algorithm = GRPC_COMPRESS_DEFLATE; in grpc_compression_algorithm_parse()
53 *algorithm = GRPC_COMPRESS_GZIP; in grpc_compression_algorithm_parse()
57 *algorithm = GRPC_COMPRESS_STREAM_GZIP; in grpc_compression_algorithm_parse()
64 int grpc_compression_algorithm_name(grpc_compression_algorithm algorithm, in grpc_compression_algorithm_name() argument
[all …]
/external/webrtc/rtc_base/
Dssl_fingerprint.cc18 #include "absl/algorithm/container.h"
28 SSLFingerprint* SSLFingerprint::Create(const std::string& algorithm, in Create() argument
30 return CreateUnique(algorithm, *identity).release(); in Create()
34 const std::string& algorithm, in CreateUnique() argument
36 return Create(algorithm, identity.certificate()); in CreateUnique()
40 const std::string& algorithm, in Create() argument
44 bool ret = cert.ComputeDigest(algorithm, digest_val, sizeof(digest_val), in Create()
50 algorithm, ArrayView<const uint8_t>(digest_val, digest_len)); in Create()
54 const std::string& algorithm, in CreateFromRfc4572() argument
56 return CreateUniqueFromRfc4572(algorithm, fingerprint).release(); in CreateFromRfc4572()
[all …]
/external/pcre/doc/
Dpcre2matching.39 string. The "standard" algorithm is the one provided by the \fBpcre2_match()\fP
18 An alternative algorithm is provided by the \fBpcre2_dfa_match()\fP function;
20 has advantages and disadvantages compared with the standard algorithm, and
33 there are three possible answers. The standard algorithm finds only one of
34 them, whereas the alternative algorithm finds all three.
48 .SH "THE STANDARD MATCHING ALGORITHM"
52 the standard algorithm is an "NFA algorithm". It conducts a depth-first search
55 the algorithm tries any alternatives at the current point, and if they all
62 the algorithm stops. Thus, if there is more than one possible match, this
63 algorithm returns the first one that it finds. Whether this is the shortest,
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/hash/
DMessageDigestAlgorithmBenchmark.java34 * <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.).
44 @Param Algorithm algorithm; field in MessageDigestAlgorithmBenchmark
50 public byte[] hash(Algorithm algorithm, byte[] input) { in MESSAGE_DIGEST_API() argument
51 MessageDigest md = algorithm.getMessageDigest(); in MESSAGE_DIGEST_API()
58 public byte[] hash(Algorithm algorithm, byte[] input) { in HASH_FUNCTION_DIRECT() argument
59 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_DIRECT()
64 public byte[] hash(Algorithm algorithm, byte[] input) { in HASH_FUNCTION_VIA_HASHER() argument
65 return algorithm.getHashFunction().newHasher().putBytes(input).hash().asBytes(); in HASH_FUNCTION_VIA_HASHER()
70 public abstract byte[] hash(Algorithm algorithm, byte[] input); in hash() argument
73 private enum Algorithm { enum in MessageDigestAlgorithmBenchmark
[all …]

12345678910>>...318