Home
last modified time | relevance | path

Searched full:sha1 (Results 1 – 25 of 630) sorted by relevance

12345678910>>...26

/external/boringssl/src/crypto/evp/
Devp_tests.txt152 Digest = SHA1
157 Digest = SHA1
162 Digest = SHA1
168 Digest = SHA1
173 Digest = SHA1
180 Digest = SHA1
185 Digest = SHA1
198 Digest = SHA1
205 Digest = SHA1
212 Digest = SHA1
[all …]
/external/webrtc/webrtc/base/
Dsha1digest_unittest.cc17 std::string Sha1(const std::string& input) { in Sha1() function
18 Sha1Digest sha1; in Sha1() local
19 return ComputeDigest(&sha1, input); in Sha1()
23 Sha1Digest sha1; in TEST() local
25 EXPECT_EQ(20U, sha1.Size()); in TEST()
29 // Test vectors from sha1.c. in TEST()
30 EXPECT_EQ("da39a3ee5e6b4b0d3255bfef95601890afd80709", Sha1("")); in TEST()
31 EXPECT_EQ("a9993e364706816aba3e25717850c26c9cd0d89d", Sha1("abc")); in TEST()
33 Sha1("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq")); in TEST()
35 EXPECT_EQ("34aa973cd4c4daa4f61eeb2bdbad27316534016f", Sha1(a_million_as)); in TEST()
[all …]
/external/guava/guava-tests/test/com/google/common/hash/
DMessageDigestHashFunctionTest.java40 // - For example, the "SHA-1" algorithm might be referred to as "SHA1".
45 .put("SHA", Hashing.sha1()) // Not the official name, but still works
46 .put("SHA1", Hashing.sha1()) // Not the official name, but still works
47 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works
48 .put("SHA-1", Hashing.sha1())
62 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash() local
65 sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8) in testPutAfterHash()
69 sha1.putInt(42); in testPutAfterHash()
76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice() local
79 sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8) in testHashTwice()
[all …]
/external/vboot_reference/firmware/lib/
Dmocked_tpm_bootmode.c14 /* SHA1("\x00\x00\x00") */
18 /* SHA1("\x00\x00\x01") */
22 /* SHA1("\x00\x00\x02") */
26 /* SHA1("\x00\x01\x00") */
30 /* SHA1("\x00\x01\x01") */
34 /* SHA1("\x00\x01\x02") */
38 /* SHA1("\x01\x00\x00") */
42 /* SHA1("\x01\x00\x01") */
46 /* SHA1("\x01\x00\x02") */
50 /* SHA1("\x01\x01\x00") */
[all …]
Dtpm_bootmode.c22 * SHA1("|Developer_Mode||Recovery_Mode||Keyblock_Mode|").
37 /* SHA1("\x00\x00\x00") */
41 /* SHA1("\x00\x00\x01") */
45 /* SHA1("\x00\x00\x02") */
49 /* SHA1("\x00\x01\x00") */
53 /* SHA1("\x00\x01\x01") */
57 /* SHA1("\x00\x01\x02") */
61 /* SHA1("\x01\x00\x00") */
65 /* SHA1("\x01\x00\x01") */
69 /* SHA1("\x01\x00\x02") */
[all …]
/external/boringssl/src/crypto/cipher_extra/test/
Dmake_all_legacy_aead_tests.sh5 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 > aes_128_cbc_sha1_tls_tests.txt
6 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 -implicit-iv > aes_128_cbc_sha1_tls_impli…
9 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 > aes_256_cbc_sha1_tls_tests.txt
10 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 -implicit-iv > aes_256_cbc_sha1_tls_impli…
14 go run make_legacy_aead_tests.go -cipher 3des -mac sha1 > des_ede3_cbc_sha1_tls_tests.txt
15 go run make_legacy_aead_tests.go -cipher 3des -mac sha1 -implicit-iv > des_ede3_cbc_sha1_tls_implic…
17 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 -ssl3 > aes_128_cbc_sha1_ssl3_tests.txt
18 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 -ssl3 > aes_256_cbc_sha1_ssl3_tests.txt
19 go run make_legacy_aead_tests.go -cipher 3des -mac sha1 -ssl3 > des_ede3_cbc_sha1_ssl3_tests.txt
/external/deqp/framework/delibs/decpp/
DdeSha1.cpp21 * \brief SHA1 hash functions
29 Sha1 Sha1::parse (const std::string& str) in parse()
33 DE_CHECK_RUNTIME_ERR_MSG(str.size() >= 40, "Failed to parse SHA1. String is too short."); in parse()
34 …DE_CHECK_RUNTIME_ERR_MSG(deSha1_parse(&hash, str.c_str()), "Failed to parse SHA1. Invalid characte… in parse()
36 return Sha1(hash); in parse()
39 Sha1 Sha1::compute (size_t size, const void* data) in compute()
44 return Sha1(hash); in compute()
57 Sha1 Sha1Stream::finalize (void) in finalize()
62 return Sha1(hash); in finalize()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/
DSHA1.java20 public class SHA1 class
22 private SHA1() in SHA1() method in SHA1
47 * SHA1 HMac
68 * SHA1 HMac
87 super("PBEwithHmacSHA", null, false, PKCS12, SHA1, 160, 0); in PBEWithMacKeyFactory()
94 private static final String PREFIX = SHA1.class.getName();
103 provider.addAlgorithm("Alg.Alias.MessageDigest.SHA1", "SHA-1"); in configure()
107 addHMACAlgorithm(provider, "SHA1", PREFIX + "$HashMac", PREFIX + "$KeyGenerator"); in configure()
108 addHMACAlias(provider, "SHA1", PKCSObjectIdentifiers.id_hmacWithSHA1); in configure()
109 addHMACAlias(provider, "SHA1", IANAObjectIdentifiers.hmacSHA1); in configure()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCertificatePinner.java57 * .add(hostname, "sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=")
72 * sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=: CN=publicobject.com, OU=PositiveSSL
73 * sha1/SXxoaOSEzPC6BgGmxAt/EAcsajw=: CN=COMODO RSA Domain Validation Secure Server CA
74 * sha1/blhOM3W9V/bVQhsWAcLYwPU6n24=: CN=COMODO RSA Certification Authority
75 * sha1/T5x9IXmcrQ7YuQxXnxoCmeeQ84c=: CN=AddTrust External CA Root
77 * sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=
88 * .add("publicobject.com", "sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=")
89 * .add("publicobject.com", "sha1/SXxoaOSEzPC6BgGmxAt/EAcsajw=")
90 * .add("publicobject.com", "sha1/blhOM3W9V/bVQhsWAcLYwPU6n24=")
91 * .add("publicobject.com", "sha1/T5x9IXmcrQ7YuQxXnxoCmeeQ84c=")
[all …]
/external/mesa3d/src/util/sha1/
DREADME1 This local copy of a SHA1 implementation based on the sources below.
12 - Avoid conflicts when using software which ships with it's own SHA1 library.
18 The SHA1 implementation is copied verbatim from the following links.
21 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/hash/sha1.c?rev=HEAD
22 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/include/sha1.h?rev=HEAD
38 - Pick the sha1.h header from the current folder, by using "" over <> in the
47 - Revert sha1.c rev 1.26 change (introduce DEF_WEAK).
50 - Add stdint.h include in sha1.h for uint*_t types. Upstream status: TBD
52 - Add stddef.h include in sha1.h for size_t type. Upstream status: TBD
/external/tcpdump/tests/
Dbfd-raw-auth-sha1-v.out9 Authentication: Meticulous Keyed SHA1 (5), length: 28
20 Authentication: Meticulous Keyed SHA1 (5), length: 28
31 Authentication: Meticulous Keyed SHA1 (5), length: 28
42 Authentication: Meticulous Keyed SHA1 (5), length: 28
53 Authentication: Meticulous Keyed SHA1 (5), length: 28
64 Authentication: Meticulous Keyed SHA1 (5), length: 28
75 Authentication: Meticulous Keyed SHA1 (5), length: 28
86 Authentication: Meticulous Keyed SHA1 (5), length: 28
97 Authentication: Meticulous Keyed SHA1 (5), length: 28
108 Authentication: Meticulous Keyed SHA1 (5), length: 28
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_pipeline_cache.c24 #include "util/mesa-sha1.h"
32 unsigned char sha1[20]; member
98 _mesa_sha1_update(ctx, module->sha1, sizeof(module->sha1)); in radv_hash_shader()
101 _mesa_sha1_update(ctx, layout->sha1, sizeof(layout->sha1)); in radv_hash_shader()
113 const unsigned char *sha1) in radv_pipeline_cache_search_unlocked() argument
116 const uint32_t start = (*(uint32_t *) sha1); in radv_pipeline_cache_search_unlocked()
125 if (memcmp(entry->sha1, sha1, sizeof(entry->sha1)) == 0) { in radv_pipeline_cache_search_unlocked()
135 const unsigned char *sha1) in radv_pipeline_cache_search() argument
141 entry = radv_pipeline_cache_search_unlocked(cache, sha1); in radv_pipeline_cache_search()
151 const unsigned char *sha1) in radv_create_shader_variant_from_pipeline_cache() argument
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DEvpMdRef.java40 } else if ((SHA1.JCA_NAME.equals(algorithmUpper)) || (SHA1.OID.equals(algorithmUpper))) { in getJcaDigestAlgorithmStandardName()
41 return SHA1.JCA_NAME; in getJcaDigestAlgorithmStandardName()
60 } else if (SHA1.JCA_NAME.equals(algorithmUpper)) { in getEVP_MDByJcaDigestAlgorithmStandardName()
61 return EvpMdRef.SHA1.EVP_MD; in getEVP_MDByJcaDigestAlgorithmStandardName()
78 } else if (SHA1.JCA_NAME.equals(algorithmUpper)) { in getDigestSizeBytesByJcaDigestAlgorithmStandardName()
79 return EvpMdRef.SHA1.SIZE_BYTES; in getDigestSizeBytesByJcaDigestAlgorithmStandardName()
92 } else if (evpMdRef == SHA1.EVP_MD) { in getJcaDigestAlgorithmStandardNameFromEVP_MD()
93 return SHA1.JCA_NAME; in getJcaDigestAlgorithmStandardNameFromEVP_MD()
116 static final class SHA1 { class in EvpMdRef
119 static final long EVP_MD = NativeCrypto.EVP_get_digestbyname("sha1");
[all …]
/external/autotest/server/site_tests/p2p_EndToEndTest/
Dp2p_EndToEndTest.py113 # Calculate the SHA1 (160 bits -> 40 characters when
117 sha1 = ret.stdout.strip()[0:40]
118 logging.info('SHA1 is %s', sha1)
120 # Wait for all the clients to finish and check the received SHA1.
130 if client_sha1 != sha1:
131 # Wrong SHA1 received.
132 raise error.TestFail("Received SHA1 (%s) doesn't match "
133 "master's SHA1 (%s)." % (client_sha1, sha1))
136 barrier.slave_barrier(sha1, timeout=P2P_SERVING_TIMEOUT_SECS)
/external/llvm/include/llvm/Support/
DSHA1.h1 //==- SHA1.h - SHA1 implementation for LLVM --*- C++ -*-==//
10 // (http://oauth.googlecode.com/svn/code/c/liboauth/src/sha1.c)
27 /// A class that wrap the SHA1 algorithm.
28 class SHA1 {
30 SHA1() { init(); } in SHA1() function
44 /// Return a reference to the current raw 160-bits SHA1 for the digested data
50 /// Return a reference to the current raw 160-bits SHA1 for the digested data
51 /// since the last call to init(). This is suitable for getting the SHA1 at
/external/llvm/lib/Support/
DSHA1.cpp1 //======- SHA1.h - Private copy of the SHA1 implementation ---*- C++ -* ======//
10 // (http://oauth.googlecode.com/svn/code/c/liboauth/src/sha1.c)
17 #include "llvm/Support/SHA1.h"
40 void SHA1::init() { in init()
54 void SHA1::hashBlock() { in hashBlock()
93 void SHA1::addUncounted(uint8_t data) { in addUncounted()
107 void SHA1::writebyte(uint8_t data) { in writebyte()
112 void SHA1::update(ArrayRef<uint8_t> Data) { in update()
117 void SHA1::pad() { in pad()
137 StringRef SHA1::final() { in final()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dsha1.c2 * SHA1 hash implementation and interface functions
12 #include "sha1.h"
17 * hmac_sha1_vector - HMAC-SHA1 over data vector (RFC 2104)
43 /* if key is longer than 64 bytes reset it to key = SHA1(key) */ in hmac_sha1_vector()
53 * SHA1(K XOR opad, SHA1(K XOR ipad, text)) in hmac_sha1_vector()
67 /* perform inner SHA1 */ in hmac_sha1_vector()
83 /* perform outer SHA1 */ in hmac_sha1_vector()
95 * hmac_sha1 - HMAC-SHA1 over data buffer (RFC 2104)
Dcrypto_internal.c23 struct SHA1Context sha1; member
58 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
96 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
97 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init()
98 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init()
110 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
111 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_init()
155 SHA1Update(&ctx->u.sha1, data, len); in crypto_hash_update()
209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
272 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
[all …]
DMakefile41 sha1.o \
42 sha1-internal.o \
43 sha1-pbkdf2.o \
44 sha1-prf.o \
45 sha1-tlsprf.o \
46 sha1-tprf.o \
/external/wpa_supplicant_8/src/eap_common/
Deap_peap_common.c12 #include "crypto/sha1.h"
37 * T1 = HMAC-SHA1(K, S | 0x01 | 0x00 | 0x00) in peap_prfplus()
38 * T2 = HMAC-SHA1(K, T1 | S | 0x02 | 0x00 | 0x00) in peap_prfplus()
40 * Tn = HMAC-SHA1(K, Tn-1 | S | n | 0x00 | 0x00) in peap_prfplus()
53 * T1 = HMAC-SHA1(K, S | LEN | 0x01) in peap_prfplus()
54 * T2 = HMAC-SHA1 (K, T1 | S | LEN | 0x02) in peap_prfplus()
55 * T3 = HMAC-SHA1 (K, T2 | S | LEN | 0x03) in peap_prfplus()
56 * T4 = HMAC-SHA1 (K, T3 | S | LEN | 0x04) in peap_prfplus()
/external/mesa3d/src/util/
DMakefile.sources20 mesa-sha1.c \
21 mesa-sha1.h \
22 sha1/sha1.c \
23 sha1/sha1.h \
/external/skia/bin/
Dfetch-gn21 sha1 = open(gn_path + '.sha1').read().strip() variable
24 h = hashlib.sha1()
30 if sha1_of_file(gn_path) != sha1:
32 f.write(urllib2.urlopen('https://chromium-gn.storage-download.googleapis.com/' + sha1).read())
39 if sha1_of_file(gn_copy_path) != sha1:
Dfetch-clang-format22 sha1 = open(target_path + '.sha1').read().strip()
25 h = hashlib.sha1()
31 if sha1_of_file(target_path) != sha1:
33 url = 'https://chromium-%s.storage-download.googleapis.com/%s' % (target, sha1)
41 if sha1_of_file(target_copy_path) != sha1:
/external/boringssl/src/crypto/fipsmodule/
DCMakeLists.txt16 sha1-x86_64.${ASM_EXT}
35 sha1-586.${ASM_EXT}
53 sha1-armv4-large.${ASM_EXT}
66 sha1-armv8.${ASM_EXT}
105 perlasm(sha1-586.${ASM_EXT} sha/asm/sha1-586.pl)
106 perlasm(sha1-armv4-large.${ASM_EXT} sha/asm/sha1-armv4-large.pl)
107 perlasm(sha1-armv8.${ASM_EXT} sha/asm/sha1-armv8.pl)
108 perlasm(sha1-x86_64.${ASM_EXT} sha/asm/sha1-x86_64.pl)
/external/selinux/libselinux/man/man3/
Dselinux_restorecon.331 will write an SHA1 digest of the combined specfiles (see the
54 force the checking of labels even if the stored SHA1 digest matches the
55 specfiles SHA1 digest. The specfiles digest will be written to the
73 and if successful write an SHA1 digest of the combined specfiles to an
143 The behavior regarding the checking and updating of the SHA1 digest described
185 will write an SHA1 digest of the specfiles that are processed by
202 The SHA1 digest is calculated by
220 flag set, a new SHA1 digest will be calculated and all files will be automatically

12345678910>>...26