Home
last modified time | relevance | path

Searched refs:SHA256_DIGEST_LENGTH (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/curl/tests/unit/
Dunit1610.c47 unsigned char output[SHA256_DIGEST_LENGTH];
55 "\x5b\x4b", SHA256_DIGEST_LENGTH);
62 "\x15\xae", SHA256_DIGEST_LENGTH);
/third_party/FreeBSD/sys/crypto/sha2/
Dsha256.h37 #define SHA256_DIGEST_LENGTH 32 macro
38 #define SHA256_DIGEST_STRING_LENGTH (SHA256_DIGEST_LENGTH * 2 + 1)
87 void SHA256_Final(unsigned char [__min_size(SHA256_DIGEST_LENGTH)],
/third_party/fsverity-utils/programs/
Dtest_compute_digest.c281 u8 digest[SHA256_DIGEST_LENGTH]; in handle_merkle_tree_block()
321 ASSERT(!memcmp(digest, expected_digest, SHA256_DIGEST_LENGTH)); in handle_merkle_tree_block()
325 static const u8 expected_file_digest[SHA256_DIGEST_LENGTH] =
331 u8 digest[SHA256_DIGEST_LENGTH]; in handle_descriptor()
340 ASSERT(!memcmp(digest, expected_file_digest, SHA256_DIGEST_LENGTH)); in handle_descriptor()
378 ASSERT(d->digest_size == SHA256_DIGEST_LENGTH); in test_metadata_callbacks()
379 ASSERT(!memcmp(d->digest, expected_file_digest, SHA256_DIGEST_LENGTH)); in test_metadata_callbacks()
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_aes_cbc_hmac_sha256_hw.c66 vctx->removetlsfixed = SHA256_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_init_key()
416 ((plen + SHA256_DIGEST_LENGTH + in aesni_cbc_hmac_sha256_cipher()
463 sha256_update(&sctx->md, out + plen, SHA256_DIGEST_LENGTH); in aesni_cbc_hmac_sha256_cipher()
467 plen += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
479 unsigned int u[SHA256_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha256_cipher()
480 unsigned char c[64 + SHA256_DIGEST_LENGTH]; in aesni_cbc_hmac_sha256_cipher()
503 if (len < (iv + SHA256_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha256_cipher()
512 maxpad = len - (SHA256_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha256_cipher()
526 inp_len = len - (SHA256_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha256_cipher()
536 len -= SHA256_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha256_cipher()
[all …]
/third_party/openssl/providers/implementations/ciphers/
Dcipher_aes_cbc_hmac_sha256_hw.c66 vctx->removetlsfixed = SHA256_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_init_key()
416 ((plen + SHA256_DIGEST_LENGTH + in aesni_cbc_hmac_sha256_cipher()
463 sha256_update(&sctx->md, out + plen, SHA256_DIGEST_LENGTH); in aesni_cbc_hmac_sha256_cipher()
467 plen += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
479 unsigned int u[SHA256_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha256_cipher()
480 unsigned char c[64 + SHA256_DIGEST_LENGTH]; in aesni_cbc_hmac_sha256_cipher()
503 if (len < (iv + SHA256_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha256_cipher()
512 maxpad = len - (SHA256_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha256_cipher()
526 inp_len = len - (SHA256_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha256_cipher()
536 len -= SHA256_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha256_cipher()
[all …]
/third_party/openssl/crypto/rsa/
Drsa_sign.c137 ENCODE_DIGESTINFO_SHA(sha256, 0x01, SHA256_DIGEST_LENGTH)
142 ENCODE_DIGESTINFO_SHA(sha512_256, 0x06, SHA256_DIGEST_LENGTH)
144 ENCODE_DIGESTINFO_SHA(sha3_256, 0x08, SHA256_DIGEST_LENGTH)
215 MD_NID_CASE(sha256, SHA256_DIGEST_LENGTH) in digest_sz_from_nid()
219 MD_NID_CASE(sha512_256, SHA256_DIGEST_LENGTH) in digest_sz_from_nid()
221 MD_NID_CASE(sha3_256, SHA256_DIGEST_LENGTH) in digest_sz_from_nid()
/third_party/node/deps/openssl/openssl/crypto/rsa/
Drsa_sign.c137 ENCODE_DIGESTINFO_SHA(sha256, 0x01, SHA256_DIGEST_LENGTH)
142 ENCODE_DIGESTINFO_SHA(sha512_256, 0x06, SHA256_DIGEST_LENGTH)
144 ENCODE_DIGESTINFO_SHA(sha3_256, 0x08, SHA256_DIGEST_LENGTH)
215 MD_NID_CASE(sha256, SHA256_DIGEST_LENGTH) in digest_sz_from_nid()
219 MD_NID_CASE(sha512_256, SHA256_DIGEST_LENGTH) in digest_sz_from_nid()
221 MD_NID_CASE(sha3_256, SHA256_DIGEST_LENGTH) in digest_sz_from_nid()
/third_party/node/deps/openssl/openssl/crypto/evp/
De_aes_cbc_hmac_sha256.c446 ((plen + SHA256_DIGEST_LENGTH + in aesni_cbc_hmac_sha256_cipher()
494 SHA256_Update(&key->md, out + plen, SHA256_DIGEST_LENGTH); in aesni_cbc_hmac_sha256_cipher()
498 plen += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
510 unsigned int u[SHA256_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha256_cipher()
511 unsigned char c[64 + SHA256_DIGEST_LENGTH]; in aesni_cbc_hmac_sha256_cipher()
534 if (len < (iv + SHA256_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha256_cipher()
543 maxpad = len - (SHA256_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha256_cipher()
557 inp_len = len - (SHA256_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha256_cipher()
567 len -= SHA256_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha256_cipher()
674 len += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
[all …]
Dlegacy_sha.c120 SHA256_DIGEST_LENGTH,
150 SHA256_DIGEST_LENGTH,
/third_party/openssl/crypto/evp/
De_aes_cbc_hmac_sha256.c446 ((plen + SHA256_DIGEST_LENGTH + in aesni_cbc_hmac_sha256_cipher()
494 SHA256_Update(&key->md, out + plen, SHA256_DIGEST_LENGTH); in aesni_cbc_hmac_sha256_cipher()
498 plen += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
510 unsigned int u[SHA256_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha256_cipher()
511 unsigned char c[64 + SHA256_DIGEST_LENGTH]; in aesni_cbc_hmac_sha256_cipher()
534 if (len < (iv + SHA256_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha256_cipher()
543 maxpad = len - (SHA256_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha256_cipher()
557 inp_len = len - (SHA256_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha256_cipher()
567 len -= SHA256_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha256_cipher()
674 len += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher()
[all …]
Dlegacy_sha.c120 SHA256_DIGEST_LENGTH,
150 SHA256_DIGEST_LENGTH,
/third_party/openssl/test/
Dsha_test.c62 static const unsigned char output[SHA256_DIGEST_LENGTH] = { in test_static_sha256()
69 return test_static_sha_common("abc", SHA256_DIGEST_LENGTH, output, &SHA256); in test_static_sha256()
Devp_fetch_prov_test.c60 unsigned char out[SHA256_DIGEST_LENGTH]; in calculate_digest()
68 || !TEST_mem_eq(out, SHA256_DIGEST_LENGTH, exptd, in calculate_digest()
69 SHA256_DIGEST_LENGTH) in calculate_digest()
152 && TEST_int_eq(EVP_MD_get_size(md), SHA256_DIGEST_LENGTH) in test_md()
/third_party/node/deps/openssl/openssl/providers/implementations/digests/
Dsha2_prov.c73 SHA256_CBLOCK, SHA256_DIGEST_LENGTH, SHA2_FLAGS,
93 SHA512_CBLOCK, SHA256_DIGEST_LENGTH, SHA2_FLAGS,
/third_party/openssl/providers/implementations/digests/
Dsha2_prov.c73 SHA256_CBLOCK, SHA256_DIGEST_LENGTH, SHA2_FLAGS,
93 SHA512_CBLOCK, SHA256_DIGEST_LENGTH, SHA2_FLAGS,
/third_party/openssl/crypto/ct/
Dct_sct_ctx.c217 if (*hash != NULL && *hash_len >= SHA256_DIGEST_LENGTH) { in ct_public_key_hash()
220 md = OPENSSL_malloc(SHA256_DIGEST_LENGTH); in ct_public_key_hash()
236 *hash_len = SHA256_DIGEST_LENGTH; in ct_public_key_hash()
/third_party/node/deps/openssl/openssl/crypto/ct/
Dct_sct_ctx.c217 if (*hash != NULL && *hash_len >= SHA256_DIGEST_LENGTH) { in ct_public_key_hash()
220 md = OPENSSL_malloc(SHA256_DIGEST_LENGTH); in ct_public_key_hash()
236 *hash_len = SHA256_DIGEST_LENGTH; in ct_public_key_hash()
/third_party/openssl/ssl/statem/
Dextensions_srvr.c25 + SSL_COOKIE_LENGTH + SHA256_DIGEST_LENGTH)
697 unsigned char hmac[SHA256_DIGEST_LENGTH]; in tls_parse_ctos_cookie()
715 if (rawlen < SHA256_DIGEST_LENGTH in tls_parse_ctos_cookie()
716 || !PACKET_forward(&raw, rawlen - SHA256_DIGEST_LENGTH)) { in tls_parse_ctos_cookie()
735 hmaclen = SHA256_DIGEST_LENGTH; in tls_parse_ctos_cookie()
739 rawlen - SHA256_DIGEST_LENGTH) <= 0 in tls_parse_ctos_cookie()
740 || hmaclen != SHA256_DIGEST_LENGTH) { in tls_parse_ctos_cookie()
750 if (CRYPTO_memcmp(hmac, mdin, SHA256_DIGEST_LENGTH) != 0) { in tls_parse_ctos_cookie()
804 || PACKET_remaining(&cookie) != SHA256_DIGEST_LENGTH) { in tls_parse_ctos_cookie()
1787 || !WPACKET_reserve_bytes(pkt, SHA256_DIGEST_LENGTH, &hmac)) { in tls_construct_stoc_cookie()
[all …]
/third_party/curl/lib/
Dhttp_aws_sigv4.c63 #define SHA256_HEX_LENGTH (2 * SHA256_DIGEST_LENGTH + 1)
67 Curl_hexencode(sha, SHA256_DIGEST_LENGTH, in sha256_to_hex()
533 unsigned char sha_hash[SHA256_DIGEST_LENGTH]; in Curl_output_aws_sigv4()
542 unsigned char sign0[SHA256_DIGEST_LENGTH] = {0}; in Curl_output_aws_sigv4()
543 unsigned char sign1[SHA256_DIGEST_LENGTH] = {0}; in Curl_output_aws_sigv4()
Dcurl_sha256.h42 #define SHA256_DIGEST_LENGTH 32 macro
/third_party/node/deps/openssl/openssl/ssl/statem/
Dextensions_srvr.c25 + SSL_COOKIE_LENGTH + SHA256_DIGEST_LENGTH)
697 unsigned char hmac[SHA256_DIGEST_LENGTH]; in tls_parse_ctos_cookie()
715 if (rawlen < SHA256_DIGEST_LENGTH in tls_parse_ctos_cookie()
716 || !PACKET_forward(&raw, rawlen - SHA256_DIGEST_LENGTH)) { in tls_parse_ctos_cookie()
735 hmaclen = SHA256_DIGEST_LENGTH; in tls_parse_ctos_cookie()
739 rawlen - SHA256_DIGEST_LENGTH) <= 0 in tls_parse_ctos_cookie()
740 || hmaclen != SHA256_DIGEST_LENGTH) { in tls_parse_ctos_cookie()
750 if (CRYPTO_memcmp(hmac, mdin, SHA256_DIGEST_LENGTH) != 0) { in tls_parse_ctos_cookie()
804 || PACKET_remaining(&cookie) != SHA256_DIGEST_LENGTH) { in tls_parse_ctos_cookie()
1821 || !WPACKET_reserve_bytes(pkt, SHA256_DIGEST_LENGTH, &hmac)) { in tls_construct_stoc_cookie()
[all …]
/third_party/openssl/crypto/sha/
Dsha256.c52 c->md_len = SHA256_DIGEST_LENGTH; in SHA256_Init()
88 case SHA256_DIGEST_LENGTH: \
89 for (nn=0;nn<SHA256_DIGEST_LENGTH/4;nn++) \
93 if ((c)->md_len > SHA256_DIGEST_LENGTH) \
/third_party/node/deps/openssl/openssl/crypto/sha/
Dsha256.c52 c->md_len = SHA256_DIGEST_LENGTH; in SHA256_Init()
88 case SHA256_DIGEST_LENGTH: \
89 for (nn=0;nn<SHA256_DIGEST_LENGTH/4;nn++) \
93 if ((c)->md_len > SHA256_DIGEST_LENGTH) \
/third_party/openssl/crypto/ffc/
Dffc_params_generate.c540 N = (L >= 2048 ? SHA256_DIGEST_LENGTH : SHA_DIGEST_LENGTH) * 8; in ossl_ffc_params_FIPS186_4_gen_verify()
812 unsigned char seed[SHA256_DIGEST_LENGTH]; in ossl_ffc_params_FIPS186_2_gen_verify()
813 unsigned char buf[SHA256_DIGEST_LENGTH]; in ossl_ffc_params_FIPS186_2_gen_verify()
835 N = (L >= 2048 ? SHA256_DIGEST_LENGTH : SHA_DIGEST_LENGTH) * 8; in ossl_ffc_params_FIPS186_2_gen_verify()
860 && qsize != SHA256_DIGEST_LENGTH) { in ossl_ffc_params_FIPS186_2_gen_verify()
/third_party/node/deps/openssl/openssl/crypto/ffc/
Dffc_params_generate.c540 N = (L >= 2048 ? SHA256_DIGEST_LENGTH : SHA_DIGEST_LENGTH) * 8; in ossl_ffc_params_FIPS186_4_gen_verify()
812 unsigned char seed[SHA256_DIGEST_LENGTH]; in ossl_ffc_params_FIPS186_2_gen_verify()
813 unsigned char buf[SHA256_DIGEST_LENGTH]; in ossl_ffc_params_FIPS186_2_gen_verify()
835 N = (L >= 2048 ? SHA256_DIGEST_LENGTH : SHA_DIGEST_LENGTH) * 8; in ossl_ffc_params_FIPS186_2_gen_verify()
860 && qsize != SHA256_DIGEST_LENGTH) { in ossl_ffc_params_FIPS186_2_gen_verify()

12345