Home
last modified time | relevance | path

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

123456

/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.c110 static void hmac_update_uint64(SHA256_CTX *sha256, uint64_t value) { in hmac_update_uint64() argument
118 SHA256_Update(sha256, bytes, sizeof(bytes)); in hmac_update_uint64()
127 SHA256_CTX sha256; in hmac_calculate() local
128 OPENSSL_memcpy(&sha256, inner_init_state, sizeof(sha256)); in hmac_calculate()
129 hmac_update_uint64(&sha256, ad_len); in hmac_calculate()
130 hmac_update_uint64(&sha256, ciphertext_len); in hmac_calculate()
131 SHA256_Update(&sha256, nonce, EVP_AEAD_AES_CTR_HMAC_SHA256_NONCE_LEN); in hmac_calculate()
132 SHA256_Update(&sha256, ad, ad_len); in hmac_calculate()
142 SHA256_Update(&sha256, padding, num_padding); in hmac_calculate()
144 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/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/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 …]
DMakefile47 sha256.o \
48 sha256-prf.o \
49 sha256-tlsprf.o \
50 sha256-internal.o \
/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
50 sha256.add("SHA256");
51 sha256.add("SHA-256");
52 sha256.add(NISTObjectIdentifiers.id_sha256.getId()); in NISTObjectIdentifiers.id_sha256.getId()
152 if (sha256.contains(digestName)) in getDigest()
205 || (sha256.contains(digest1) && sha256.contains(digest2)) in isSameDigest()
/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/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/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/boringssl/src/util/bot/
Dextract.py100 sha256 = hashlib.sha256()
105 sha256.update(chunk)
106 digest = sha256.hexdigest()
/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/autotest/client/site_tests/security_OpenSSLBlacklist/src/
Dsha256_blacklist2 # openssl x509 -in src/cert.pem -fingerprint -sha256 -noout \
4 sha256 ade097576a5176f8cbc1fdac7ef796fcaa8cabe0714fd114eb66de215b51c40b
/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/brotli/java/org/brotli/dec/
DDictionaryTest.java28 String sha256 = String.format("%064x", new java.math.BigInteger(1, digest)); in testGetData() local
29 assertEquals("20e42eb1b511c21806d4d227d07e5dd06877d8ce7b3a817f378f313653f35c70", sha256); in testGetData()
/external/vboot_reference/tests/futility/
Dtest_create.sh17 for hash in sha1 sha256 sha512; do
31 for hash in sha1 sha256 sha512; do
/external/protobuf/util/
DWORKSPACE4 sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
11 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
/external/protobuf/
DWORKSPACE4 sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
11 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
/external/curl/tests/data/
Dtest204226 HTTPS wrong base64-sha256 pinnedpubkey but right CN
29 --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey sha256//bSIggTf+ikMG0CtmDlpMVBd7yi7H1md4U…
/external/libchrome/crypto/
Dsignature_creator_unittest.cc102 std::string sha256 = crypto::SHA256HashString(data); in TEST() local
107 reinterpret_cast<const uint8_t*>(sha256.c_str()), sha256.size(), in TEST()
/external/boringssl/src/crypto/digest_extra/
Ddigest_test.cc50 static const MD sha256 = { "SHA256", &EVP_sha256, &SHA256 }; variable
113 { sha256, "abc", 1,
115 { sha256,
/external/guava/guava-tests/test/com/google/common/hash/
DHashingTest.java65 HashTestUtils.checkAvalanche(Hashing.sha256(), 100, 0.4); in testSha256()
66 HashTestUtils.checkNo2BitCharacteristics(Hashing.sha256()); in testSha256()
67 HashTestUtils.checkNoFunnels(Hashing.sha256()); in testSha256()
68 HashTestUtils.assertInvariants(Hashing.sha256()); in testSha256()
69 assertEquals("Hashing.sha256()", Hashing.sha256().toString()); in testSha256()
396 .put(Hashing.sha256(), EMPTY_STRING,
398 .put(Hashing.sha256(), TQBFJOTLD,
400 .put(Hashing.sha256(), TQBFJOTLDP,

123456