Home
last modified time | relevance | path

Searched refs:sha256 (Results 1 – 25 of 174) sorted by relevance

1234567

/external/e2fsprogs/lib/ext2fs/
Dsha256.c82 struct sha256_state sha256; member
93 S[i] = md->sha256.state[i]; in sha256_compress()
115 md->sha256.state[i] = md->sha256.state[i] + S[i]; in sha256_compress()
121 md->sha256.curlen = 0; in sha256_init()
122 md->sha256.length = 0; in sha256_init()
123 md->sha256.state[0] = 0x6A09E667UL; in sha256_init()
124 md->sha256.state[1] = 0xBB67AE85UL; in sha256_init()
125 md->sha256.state[2] = 0x3C6EF372UL; in sha256_init()
126 md->sha256.state[3] = 0xA54FF53AUL; in sha256_init()
127 md->sha256.state[4] = 0x510E527FUL; in sha256_init()
[all …]
/external/boringssl/src/crypto/cipher_extra/
De_aesctrhmac.c108 static void hmac_update_uint64(SHA256_CTX *sha256, uint64_t value) { in hmac_update_uint64() argument
116 SHA256_Update(sha256, bytes, sizeof(bytes)); in hmac_update_uint64()
125 SHA256_CTX sha256; in hmac_calculate() local
126 OPENSSL_memcpy(&sha256, inner_init_state, sizeof(sha256)); in hmac_calculate()
127 hmac_update_uint64(&sha256, ad_len); in hmac_calculate()
128 hmac_update_uint64(&sha256, ciphertext_len); in hmac_calculate()
129 SHA256_Update(&sha256, nonce, EVP_AEAD_AES_CTR_HMAC_SHA256_NONCE_LEN); in hmac_calculate()
130 SHA256_Update(&sha256, ad, ad_len); in hmac_calculate()
140 SHA256_Update(&sha256, padding, num_padding); in hmac_calculate()
142 SHA256_Update(&sha256, ciphertext, ciphertext_len); in hmac_calculate()
[all …]
Dtls_cbc.c211 SHA256_CTX sha256; member
220 SHA256_Transform(&ctx->sha256, block); in tls1_sha256_transform()
240 SHA256_CTX *sha256 = &ctx->sha256; in tls1_sha256_final_raw() local
242 u32toBE(sha256->h[i], md_out); in tls1_sha256_final_raw()
296 SHA256_Init(&md_state.sha256); in EVP_tls_cbc_digest_record()
/external/rappor/client/java/com/google/android/rappor/
DEncoder.java174 private final MessageDigest sha256; field in Encoder
270 MessageDigest sha256, in Encoder()
293 if (sha256 != null) { in Encoder()
294 this.sha256 = sha256; in Encoder()
297 this.sha256 = MessageDigest.getInstance("SHA-256"); in Encoder()
304 this.sha256.reset(); in Encoder()
535 Math.min(HmacDrbg.MAX_PERSONALIZATION_STRING_LENGTH_BYTES, 1 + sha256.getDigestLength()); in computePermanentRandomizedResponse()
538 sha256.reset(); in computePermanentRandomizedResponse()
539 sha256.update(encoderIdBytes); in computePermanentRandomizedResponse()
540 sha256.update(new byte[] {0}); in computePermanentRandomizedResponse()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal.c25 struct sha256_state sha256; member
62 sha256_init(&ctx->u.sha256); in crypto_hash_init()
116 sha256_init(&ctx->u.sha256); in crypto_hash_init()
117 sha256_process(&ctx->u.sha256, key, key_len); in crypto_hash_init()
118 sha256_done(&ctx->u.sha256, tk); in crypto_hash_init()
130 sha256_init(&ctx->u.sha256); in crypto_hash_init()
131 sha256_process(&ctx->u.sha256, k_pad, sizeof(k_pad)); in crypto_hash_init()
160 sha256_process(&ctx->u.sha256, data, len); in crypto_hash_update()
219 sha256_done(&ctx->u.sha256, mac); in crypto_hash_finish()
293 sha256_done(&ctx->u.sha256, mac); in crypto_hash_finish()
[all …]
DMakefile50 sha256.o \
51 sha256-prf.o \
52 sha256-tlsprf.o \
53 sha256-internal.o \
/external/tensorflow/tensorflow/
Dworkspace.bzl89 sha256 = "6b07cb7e5451db67c2e31e785ae458b18f7f363c60a61685488f69e9ae7199d4",
104 sha256 = "02e244f63dd95402691a361392504c143eede9a89043426f174836638a9cbf09",
115 sha256 = "5996380e3e8b981f55d1c8d58e709c00dbb4806ba367be75d0925a68cc2f6478",
126 sha256 = "0cadb31a35b514bf2dfd6b5d38205da94ef326ec6908fc3fd7c269948467214f",
133 sha256 = "970285762565c7890c6c087d262b0a18286e7d0384f13a37786d8521773bc969",
150 sha256 = "2ade869c3f42f23b5263c7d594aa3c7e5e61ac6a3afcaf5d6e42899d2a7986ce",
163 sha256 = "932075525642b04ac6f1b50589f1df5cd72ec2f448b721fd32234cf183f0e755",
175 sha256 = "e57eeb837ac40b5be37b2c6197438766e73343ffb32368efea793dfd8b28653b",
185 sha256 = "b852cc90259a7357c8a323f108f2cec6e85979fc3b18b5590b99e0130044b2cf",
195 sha256 = "6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0",
[all …]
/external/tensorflow/tensorflow/core/platform/s3/
Ds3_crypto.cc58 SHA256_CTX sha256; in Calculate() local
59 SHA256_Init(&sha256); in Calculate()
60 SHA256_Update(&sha256, str.data(), str.size()); in Calculate()
63 SHA256_Final(hash.GetUnderlyingData(), &sha256); in Calculate()
70 SHA256_CTX sha256; in Calculate() local
71 SHA256_Init(&sha256); in Calculate()
89 SHA256_Update(&sha256, streamBuffer, static_cast<size_t>(bytesRead)); in Calculate()
97 SHA256_Final(hash.GetUnderlyingData(), &sha256); in Calculate()
/external/lzma/Java/Tukaani/src/org/tukaani/xz/check/
DSHA256.java13 private final java.security.MessageDigest sha256; field in SHA256
18 sha256 = java.security.MessageDigest.getInstance("SHA-256"); in SHA256()
22 sha256.update(buf, off, len); in update()
26 byte[] buf = sha256.digest(); in finish()
27 sha256.reset(); in finish()
/external/boringssl/src/ssl/test/runner/
Dticket.go162 encrypted := make([]byte, aes.BlockSize+len(serialized)+sha256.Size)
164 macBytes := encrypted[len(encrypted)-sha256.Size:]
175 mac := hmac.New(sha256.New, c.config.SessionTicketKey[16:32])
176 mac.Write(encrypted[:len(encrypted)-sha256.Size])
183 if len(encrypted) < aes.BlockSize+sha256.Size {
188 macBytes := encrypted[len(encrypted)-sha256.Size:]
190 mac := hmac.New(sha256.New, c.config.SessionTicketKey[16:32])
191 mac.Write(encrypted[:len(encrypted)-sha256.Size])
202 ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size]
/external/vboot_reference/tests/
Drun_vbutil_tests.sh54 test_vbutil_key_single 4 2048 sha256
55 test_vbutil_key_single 7 4096 sha256
201 test_vbutil_keyblock_single 7 4096 sha256 4 2048 sha256
202 test_vbutil_keyblock_single 11 8192 sha512 4 2048 sha256
203 test_vbutil_keyblock_single 11 8192 sha512 7 4096 sha256
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
DDigestFactory.java23 private static Set sha256 = new HashSet(); field in DigestFactory
52 sha256.add("SHA256");
53 sha256.add("SHA-256");
54 sha256.add(NISTObjectIdentifiers.id_sha256.getId()); in NISTObjectIdentifiers.id_sha256.getId()
156 if (sha256.contains(digestName)) in getDigest()
213 || (sha256.contains(digest1) && sha256.contains(digest2)) in isSameDigest()
/external/tensorflow/
DWORKSPACE5 sha256 = "6691c58a2cd30a86776dd9bb34898b041e37136f2dc7e24cadaeaf599c95c657",
46 sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
56 sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
66 sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
76 sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
86 sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
/external/wpa_supplicant_8/hs20/server/ca/
Dsetup.sh107 …$OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out rootCA/cacert.pem -days 10957 -…
128 …$OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out demoCA/cacert.pem -days 3652 -b…
144 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -keyfile demoCA/private/cakey.pem -passi…
152 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server-revoked.csr -out server-revok…
162 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server-client.csr -out server-client…
170 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in user.csr -out user.pem -key $PASS -d…
186 echo $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -sha256 -new -newkey rsa:2048 -nodes -out ser…
187 $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -sha256 -new -newkey rsa:2048 -nodes -out server.c…
188 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server.csr -out server.pem -key $PAS…
200 $OPENSSL ca -config $PWD/my-openssl.cnf -gencrl -md sha256 -out demoCA/crl/crl.pem -passin pass:$PA…
/external/boringssl/src/crypto/fipsmodule/
DCMakeLists.txt17 sha256-x86_64.${ASM_EXT}
36 sha256-586.${ASM_EXT}
54 sha256-armv4.${ASM_EXT}
67 sha256-armv8.${ASM_EXT}
109 perlasm(sha256-586.${ASM_EXT} sha/asm/sha256-586.pl)
110 perlasm(sha256-armv4.${ASM_EXT} sha/asm/sha256-armv4.pl)
111 perlasm(sha256-armv8.${ASM_EXT} sha/asm/sha512-armv8.pl)
112 perlasm(sha256-x86_64.${ASM_EXT} sha/asm/sha512-x86_64.pl)
/external/nos/test/system-test-harness/
DWORKSPACE7 sha256 = "f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf",
15 sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30",
22 sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30",
29 sha256 = "4e44b69e709c826734dbbbd5208f61888a2faf63f239d73d8ba0011b2dccc97a",
/external/brotli/
DWORKSPACE20 sha256 = "ba5e2e10cdc4027702f96e9bdc536c6595decafa94847d08ae28c6cb48225124",
27 sha256 = "7fdfb17d890406470b2303d749d3138e7f353749e67a0a22f542e1ab3e482745",
45 sha256 = "2a58bd1d9b0cbf0b3d8d1bcdd117c407e3d5a0ec01e2f53565c9bec5cf9ea78b",
/external/boringssl/src/util/bot/
Dextract.py100 sha256 = hashlib.sha256()
105 sha256.update(chunk)
106 digest = sha256.hexdigest()
/external/curl/docs/cmdline-opts/
Dpinnedpubkey.d8 or DER format, or any number of base64 encoded sha256 hashes preceded by
9 \'sha256//\' and separated by \';\'
21 sha256 support:
/external/python/cpython2/Lib/test/
Dtest_hmac.py92 hashlib.sha256: 'b0344c61d8db38535ca8afceaf0bf12b'
109 hashlib.sha256: '5bdcc146bf60754e6a042426089575c7'
126 hashlib.sha256: '773ea91e36800e46854db8ebd09181a7'
143 hashlib.sha256: '82558a389a443c0ea4cc819899f2083a'
161 hashlib.sha256: '60e431591ee0b67f0d8a26aacbf5b77f'
182 hashlib.sha256: '9b09ffa71b942fcb27635fbcd5b0e944'
197 self._rfc4231_test_cases(hashlib.sha256)
/external/vboot_reference/firmware/2lib/
D2sha_utility.c97 vb2_sha256_init(&dc->sha256); in vb2_digest_init()
122 vb2_sha256_update(&dc->sha256, buf, size); in vb2_digest_extend()
150 vb2_sha256_finalize(&dc->sha256, digest); in vb2_digest_finalize()
/external/avb/libavb_atx/
Davb_atx_validate.c33 static void sha256(const uint8_t* data, in sha256() function
56 sha256((const uint8_t*)str, avb_strlen(str), hash); in sha256_str()
69 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes()
147 sha256(product_id, AVB_ATX_PRODUCT_ID_SIZE, expected_subject); in verify_psk_certificate()
/external/brotli/java/org/brotli/wrapper/common/
DSetRfcDictionaryTest.java64 MessageDigest sha256 = MessageDigest.getInstance("SHA-256"); in testRfcDictionaryChecksums() local
65 sha256.update(data, 0, offset); in testRfcDictionaryChecksums()
66 assertTrue(BrotliCommon.checkDictionaryDataSha256(sha256.digest())); in testRfcDictionaryChecksums()
/external/autotest/client/site_tests/security_OpenSSLBlacklist/src/
Dsha256_blacklist2 # openssl x509 -in src/cert.pem -fingerprint -sha256 -noout \
4 sha256 ade097576a5176f8cbc1fdac7ef796fcaa8cabe0714fd114eb66de215b51c40b
/external/vboot_reference/tests/futility/
Dtest_create.sh17 for hash in sha1 sha256 sha512; do
31 for hash in sha1 sha256 sha512; do

1234567