Home
last modified time | relevance | path

Searched +full:- +full:algorithm (Results 1 – 25 of 1217) sorted by relevance

12345678910>>...49

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DSymmetricAlgorithmProvider.java9 // BEGIN Android-removed: Unsupported algorithms
13 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);
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/
DSymmetricAlgorithmProvider.java10 // BEGIN Android-removed: Unsupported algorithms
14 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);
[all …]
/external/pcre/dist2/doc/
Dpcre2matching.33 PCRE2 - Perl-compatible regular expressions (revised API)
9 string. The "standard" algorithm is the one provided by the \fBpcre2_match()\fP
11 Perl-compatible matching operation. The just-in-time (JIT) optimization that is
18 An alternative algorithm is provided by the \fBpcre2_dfa_match()\fP function;
19 it operates in a different way, and is not Perl-compatible. This alternative
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.
44 There are two ways to search a tree: depth-first and breadth-first, and these
48 .SH "THE STANDARD MATCHING ALGORITHM"
[all …]
/external/grpc-grpc/src/core/lib/compression/
Dcompression.cc9 * http://www.apache.org/licenses/LICENSE-2.0
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()
[all …]
Dcompression_internal.cc9 * http://www.apache.org/licenses/LICENSE-2.0
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()
106 return bitset & ((1u << GRPC_MESSAGE_COMPRESS_ALGORITHMS_COUNT) - 1); in grpc_compression_bitset_to_message_bitset()
112 (bitset >> (GRPC_MESSAGE_COMPRESS_ALGORITHMS_COUNT - 1)) & in grpc_compression_bitset_to_stream_bitset()
113 ((1u << GRPC_STREAM_COMPRESS_ALGORITHMS_COUNT) - 2); in grpc_compression_bitset_to_stream_bitset()
121 ((stream_bitset & (~1u)) << (GRPC_MESSAGE_COMPRESS_ALGORITHMS_COUNT - 1)); in grpc_compression_bitset_from_message_stream_compression_bitset()
126 grpc_compression_algorithm* algorithm, in grpc_compression_algorithm_from_message_stream_compression_algorithm() argument
[all …]
/external/python/cpython2/Lib/plat-irix5/
DCL_old.py2 # cl.h - Compression Library typedefs and prototypes
23 # 422 is appended to YUV (or YCrCb) if the chroma is sub-sampled by 2
25 # 422HC is appended to YUV (or YCrCb) if the chroma is sub-sampled by 2
45 BEST_FIT = -1
97 # Algorithm types
106 def Algorithm(type, n): function
112 UNKNOWN_SCHEME = -1
114 UNCOMPRESSED_AUDIO = Algorithm(AUDIO, 0)
115 G711_ULAW = Algorithm(AUDIO, 1)
116 ULAW = Algorithm(AUDIO, 1)
[all …]
/external/ImageMagick/Magick++/demo/
Dzoom.cpp1 // This may look like C code, but it is really -*- C++ -*-
5 // Resize image using specified resize algorithm with Magick++ API
7 // Usage: zoom [-density resolution] [-filter algorithm] [-geometry geometry]
8 // [-resample resolution] input_file output_file
20 << " [-density resolution] [-filter algorithm] [-geometry geometry]" in Usage()
21 << " [-resample resolution] input_file output_file" << endl in Usage()
22 << " algorithm - bessel blackman box catrom cubic gaussian hamming hanning" << endl in Usage()
57 while ((argv_index < argc - 2) && (*argv[argv_index] == '-')) in main()
60 if (command.compare("-density") == 0) in main()
73 else if (command.compare("-filter") == 0) in main()
[all …]
/external/pcre/dist2/doc/html/
Dpcre2matching.html18 <li><a name="TOC3" href="#SEC3">THE STANDARD MATCHING ALGORITHM</a>
19 <li><a name="TOC4" href="#SEC4">THE ALTERNATIVE MATCHING ALGORITHM</a>
20 <li><a name="TOC5" href="#SEC5">ADVANTAGES OF THE ALTERNATIVE ALGORITHM</a>
21 <li><a name="TOC6" href="#SEC6">DISADVANTAGES OF THE ALTERNATIVE ALGORITHM</a>
29 string. The "standard" algorithm is the one provided by the <b>pcre2_match()</b>
31 Perl-compatible matching operation. The just-in-time (JIT) optimization that is
37 An alternative algorithm is provided by the <b>pcre2_dfa_match()</b> function;
38 it operates in a different way, and is not Perl-compatible. This alternative
39 has advantages and disadvantages compared with the standard algorithm, and
53 there are three possible answers. The standard algorithm finds only one of
[all …]
/external/vboot_reference/host/lib/
Dhost_key.c2 * Use of this source code is governed by a BSD-style license that can be
23 VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm) { in PrivateKeyReadPem() argument
29 if (algorithm >= kNumAlgorithms) { in PrivateKeyReadPem()
30 VBDEBUG(("%s() called with invalid algorithm!\n", __FUNCTION__)); in PrivateKeyReadPem()
48 /* Store key and algorithm in our struct */ in PrivateKeyReadPem()
54 key->rsa_private_key = rsa_key; in PrivateKeyReadPem()
55 key->algorithm = algorithm; in PrivateKeyReadPem()
65 if (key->rsa_private_key) in PrivateKeyFree()
66 RSA_free(key->rsa_private_key); in PrivateKeyFree()
77 buflen = i2d_RSAPrivateKey(key->rsa_private_key, &outbuf); in PrivateKeyWrite()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/hash/
DMessageDigestAlgorithmBenchmark.java8 * http://www.apache.org/licenses/LICENSE-2.0
36 * <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.).
44 @Param Algorithm algorithm; field in MessageDigestAlgorithmBenchmark
49 @Override public byte[] hash(Algorithm algorithm, byte[] input) { in MESSAGE_DIGEST_API() argument
50 MessageDigest md = algorithm.getMessageDigest(); in MESSAGE_DIGEST_API()
56 @Override public byte[] hash(Algorithm algorithm, byte[] input) { in HASH_FUNCTION_API() argument
57 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_API()
60 public abstract byte[] hash(Algorithm algorithm, byte[] input); in hash() argument
63 private enum Algorithm { enum in MessageDigestAlgorithmBenchmark
65 SHA_1("SHA-1", Hashing.sha1()),
[all …]
/external/squashfs-tools/squashfs-tools/
Dlzo_wrapper.c17 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
43 /* default LZO compression algorithm and compression level */
44 static int algorithm = SQUASHFS_LZO1X_999; variable
48 static int user_comp_level = -1;
53 * to parse any -X compressor option.
57 * -1 if the option was unrecognised, or
58 * -2 if the option was recognised, but otherwise bad in
70 if(strcmp(argv[0], "-Xalgorithm") == 0) { in lzo_options()
72 fprintf(stderr, "lzo: -Xalgorithm missing algorithm\n"); in lzo_options()
73 fprintf(stderr, "lzo: -Xalgorithm <algorithm>\n"); in lzo_options()
[all …]
/external/libcups/cups/
Dhash.c4 * Copyright © 2015-2018 by Apple Inc.
12 * This file is subject to the Apple OS-Developed Software exception.
19 #include "cups-private.h"
25 # include "md5-private.h"
30 * 'cupsHashData()' - Perform a hash function on the given data.
32 * The "algorithm" argument can be any of the registered, non-deprecated IPP
33 * hash algorithms for the "job-password-encryption" attribute, including
34 * "sha" for SHA-1, "sha-256" for SHA2-256, etc.
44 ssize_t /* O - Size of hash or -1 on error */
45 cupsHashData(const char *algorithm, /* I - Algorithm name */ in cupsHashData() argument
[all …]
/external/webrtc/webrtc/base/
Dopenssldigest.cc4 * Use of this source code is governed by a BSD-style license
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()
[all …]
Dsslfingerprint.cc4 * Use of this source code is governed by a BSD-style license
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
35 bool ret = cert->ComputeDigest( in Create()
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()
[all …]
/external/tensorflow/tensorflow/python/ops/
Dstateful_random_ops.py7 # http://www.apache.org/licenses/LICENSE-2.0
38 MAX_INT64 = 2**63 - 1
39 MIN_INT64 = -(2**63)
65 """Non-deterministically generates some integers.
67 This op may use some OS-provided source of non-determinism (e.g. an RNG), so
75 a tensor whose element values are non-deterministically chosen.
83 n = n - SEED_UINT_SPAN
88 """Makes a 1-D RNG state.
92 seed: an integer or 1-D tensor.
95 a 1-D tensor of shape [state_size] and dtype STATE_TYPE.
[all …]
/external/u-boot/include/
Dhash.h1 /* SPDX-License-Identifier: GPL-2.0+ */
21 const char *name; /* Name of algorithm */
31 * @output: Checksum result (length depends on algorithm)
42 * @return 0 if ok, -1 on error
55 * @return 0 if ok, -1 on error
68 * @return 0 if ok, -ENOSPC if size of the result buffer is too small
69 * or -1 on other errors
77 * hash_command: Process a hash command for a particular algorithm
81 * @algo_name: Hash algorithm being used (lower case!)
92 * hash_block() - Hash a block according to the requested algorithm
[all …]
/external/vboot_reference/firmware/lib/cryptolib/
Drsa_utility.c2 * Use of this source code is governed by a BSD-style license that can be
15 uint64_t RSAProcessedKeySize(uint64_t algorithm, uint64_t* out_size) { in RSAProcessedKeySize() argument
17 if (algorithm < kNumAlgorithms) { in RSAProcessedKeySize()
18 key_len = siglen_map[algorithm]; in RSAProcessedKeySize()
31 key->n = NULL; in RSAPublicKeyNew()
32 key->rr = NULL; in RSAPublicKeyNew()
33 key->len = 0; in RSAPublicKeyNew()
34 key->algorithm = kNumAlgorithms; in RSAPublicKeyNew()
40 if (key->n) in RSAPublicKeyFree()
41 VbExFree(key->n); in RSAPublicKeyFree()
[all …]
/external/nos/host/android/hals/keymaster/
Dbuffer.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <android-base/logging.h>
34 using ::android::hardware::keymaster::V4_0::Algorithm;
47 Operation(Algorithm algorithm) : _algorithm(algorithm), _buffer{} { in Operation() argument
49 case Algorithm::AES:
52 case Algorithm::TRIPLE_DES:
55 case Algorithm::RSA:
56 case Algorithm::EC:
57 case Algorithm::HMAC:
71 kMaxChunkSize - _buffer.size(), input.size()); in append()
[all …]
/external/vboot_reference/futility/
Dcmd_vbutil_key.c2 * Use of this source code is governed by a BSD-style license that can be
34 {"algorithm", 1, 0, OPT_ALGORITHM},
46 "Usage: " MYNAME " %s --pack <outfile> [PARAMETERS]\n" in print_help()
49 " --key <infile> RSA key file (.keyb or .pem)\n" in print_help()
50 " --version <number> Key version number " in print_help()
53 " --algorithm <number> " in print_help()
54 "Signing algorithm to use with key:\n", progname); in print_help()
62 "Usage: " MYNAME " %s --unpack <infile>\n" in print_help()
65 " --copyto <file> " in print_help()
70 static int Pack(const char *infile, const char *outfile, uint64_t algorithm, in Pack() argument
[all …]
/external/grpc-grpc/src/ruby/ext/grpc/
Drb_compression_options.c9 * http://www.apache.org/licenses/LICENSE-2.0
45 * It can be used to get the channel argument key-values for specific
64 if (wrapper->wrapped != NULL) { in grpc_rb_compression_options_free()
65 gpr_free(wrapper->wrapped); in grpc_rb_compression_options_free()
66 wrapper->wrapped = NULL; in grpc_rb_compression_options_free()
95 wrapper->wrapped = NULL; in grpc_rb_compression_options_alloc()
96 wrapper->wrapped = gpr_malloc(sizeof(grpc_compression_options)); in grpc_rb_compression_options_alloc()
97 grpc_compression_options_init(wrapper->wrapped); in grpc_rb_compression_options_alloc()
103 /* Disables a compression algorithm, given the GRPC core internal number of a
104 * compression algorithm. */
[all …]
/external/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_measurements.sh34 [ -f "$POLICY" ] || tst_res TINFO "not using default policy"
38 local template="$(tail -1 $ASCII_MEASUREMENTS | cut -d' ' -f 3)"
41 # https://www.kernel.org/doc/html/latest/security/IMA-templates.html#use
43 ima|ima-ng|ima-sig) DIGEST_INDEX=4 ;;
49 if [ "$word" = 'd' -o "$word" = 'd-ng' ]; then
57 [ -z "$DIGEST_INDEX" ] && tst_brk TCONF \
66 local algorithm="$1"
70 digest="$(${algorithm}sum $file 2>/dev/null | cut -f1 -d ' ')"
71 if [ -n "$digest" ]; then
76 digest="$(openssl $algorithm $file 2>/dev/null | cut -f2 -d ' ')"
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
DKeyGeneratorTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
45 // BEGIN Android-Added: Allow access to deprecated BC algorithms.
59 // END Android-Added: Allow access to deprecated BC algorithms.
84 // providing AndroidKeyStore-specific algorithm parameters. in test_getInstance()
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()
[all …]
/external/grpc-grpc/include/grpc/
Dcompression.h9 * http://www.apache.org/licenses/LICENSE-2.0
33 /** Return if an algorithm is message compression algorithm. */
35 grpc_compression_algorithm algorithm);
37 /** Return if an algorithm is stream compression algorithm. */
39 grpc_compression_algorithm algorithm);
42 * algorithm. Returns 1 upon success, 0 otherwise. */
44 grpc_slice value, grpc_compression_algorithm* algorithm);
47 * algorithm. Note that \a name is statically allocated and must *not* be freed.
50 grpc_compression_algorithm algorithm, const char** name);
52 /** Returns the compression algorithm corresponding to \a level for the
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509Util.java28 // Android-removed: Unsupported algorithms
34 // Android-removed: Unsupported algorithms
49 // BEGIN Android-removed: Unsupported algorithms
52 // END Android-removed: Unsupported algorithms
70 // BEGIN Android-removed: Unsupported algorithms
77 // END Android-removed: Unsupported algorithms
90 // BEGIN Android-removed: Unsupported algorithms
92 …// algorithms.put("GOST3411WITHGOST3410-94", CryptoProObjectIdentifiers.gostR3411_94_with_gostR341…
94 …// algorithms.put("GOST3411WITHECGOST3410-2001", CryptoProObjectIdentifiers.gostR3411_94_with_gost…
95 …// algorithms.put("GOST3411WITHGOST3410-2001", CryptoProObjectIdentifiers.gostR3411_94_with_gostR3…
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/
DX509Util.java29 // Android-removed: Unsupported algorithms
35 // Android-removed: Unsupported algorithms
50 // BEGIN Android-removed: Unsupported algorithms
53 // END Android-removed: Unsupported algorithms
71 // BEGIN Android-removed: Unsupported algorithms
78 // END Android-removed: Unsupported algorithms
91 // BEGIN Android-removed: Unsupported algorithms
93 …// algorithms.put("GOST3411WITHGOST3410-94", CryptoProObjectIdentifiers.gostR3411_94_with_gostR341…
95 …// algorithms.put("GOST3411WITHECGOST3410-2001", CryptoProObjectIdentifiers.gostR3411_94_with_gost…
96 …// algorithms.put("GOST3411WITHGOST3410-2001", CryptoProObjectIdentifiers.gostR3411_94_with_gostR3…
[all …]

12345678910>>...49