| /src/crypto/external/apache2/openssl/dist/test/ |
| defltfips_test.c | 21 EVP_MD *sha256 = NULL; local 45 sha256 = EVP_MD_fetch(NULL, "SHA2-256", NULL); 47 if (!TEST_ptr_null(sha256)) { 48 EVP_MD_free(sha256); 52 if (!TEST_ptr(sha256)) 55 && !TEST_str_eq(OSSL_PROVIDER_get0_name(EVP_MD_get0_provider(sha256)), 57 EVP_MD_free(sha256); 60 EVP_MD_free(sha256);
|
| prov_config_test.c | 27 EVP_MD *sha256 = NULL; local 38 sha256 = EVP_MD_fetch(ctx, "SHA2-256", NULL); 39 if (!TEST_ptr(sha256)) 44 EVP_MD_free(sha256);
|
| ml_kem_internal_test.c | 83 EVP_MD *sha256 = EVP_MD_fetch(NULL, "sha256", NULL); local 87 if (!TEST_ptr(sha256)) 175 hash, NULL, sha256, NULL)) 241 EVP_MD_free(sha256);
|
| namemap_internal_test.c | 81 const EVP_MD *sha256, *foo; local 85 id = ossl_namemap_add_name(nm, 0, "SHA256"); 91 sha256 = EVP_get_digestbyname("SHA256"); 92 if (!TEST_ptr(sha256)) 95 if (!TEST_ptr_eq(sha256, foo))
|
| ml_kem_evp_extra_test.c | 223 EVP_MD *sha256; local 230 if (!TEST_ptr(sha256 = EVP_MD_fetch(NULL, "sha256", NULL))) 327 hash, NULL, sha256, NULL)) 400 EVP_MD_free(sha256);
|
| p_test.c | 316 EVP_MD *sha256 = EVP_MD_fetch(ctx->libctx, "SHA2-256", NULL); local 317 if (sha256 != NULL) { 318 EVP_MD_free(sha256);
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| defltfips_test.c | 21 EVP_MD *sha256 = NULL; local 45 sha256 = EVP_MD_fetch(NULL, "SHA2-256", NULL); 47 if (!TEST_ptr_null(sha256)) { 48 EVP_MD_free(sha256); 52 if (!TEST_ptr(sha256)) 55 && !TEST_str_eq(OSSL_PROVIDER_get0_name(EVP_MD_get0_provider(sha256)), 57 EVP_MD_free(sha256); 60 EVP_MD_free(sha256);
|
| prov_config_test.c | 27 EVP_MD *sha256 = NULL; local 38 sha256 = EVP_MD_fetch(ctx, "SHA2-256", NULL); 39 if (!TEST_ptr(sha256)) 44 EVP_MD_free(sha256);
|
| namemap_internal_test.c | 81 const EVP_MD *sha256, *foo; local 85 id = ossl_namemap_add_name(nm, 0, "SHA256"); 91 sha256 = EVP_get_digestbyname("SHA256"); 92 if (!TEST_ptr(sha256)) 95 if (!TEST_ptr_eq(sha256, foo))
|
| /src/external/bsd/wpa/dist/src/crypto/ |
| crypto_internal.c | 25 struct sha256_state sha256; member in union:crypto_hash::__anon8305 62 sha256_init(&ctx->u.sha256); 116 sha256_init(&ctx->u.sha256); 117 sha256_process(&ctx->u.sha256, key, key_len); 118 sha256_done(&ctx->u.sha256, tk); 130 sha256_init(&ctx->u.sha256); 131 sha256_process(&ctx->u.sha256, k_pad, sizeof(k_pad)); 160 sha256_process(&ctx->u.sha256, data, len); 219 sha256_done(&ctx->u.sha256, mac); 293 sha256_done(&ctx->u.sha256, mac) [all...] |
| /src/external/public-domain/xz/dist/src/liblzma/check/ |
| check.h | 33 # include <sha256.h> 63 # define LZMA_SHA256FUNC(x) SHA256 ## x 82 /// Buffer to hold the final result and a temporary buffer for SHA256. 93 lzma_sha256_state sha256; member in union:__anon24579::__anon24581 143 LZMA_SHA256FUNC(Init)(&check->state.sha256); 154 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, UINT32_MAX); 160 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, size); 167 LZMA_SHA256FUNC(Final)(check->buffer.u8, &check->state.sha256);
|
| /src/sbin/cgdconfig/ |
| hkdf_hmac_sha256.c | 42 SHA256_CTX sha256; member in struct:hmacsha256 54 SHA256_Init(&H->sha256); 55 SHA256_Update(&H->sha256, key, keylen); 56 SHA256_Final(hkey, &H->sha256); 67 SHA256_Init(&H->sha256); 68 SHA256_Update(&H->sha256, ipad, SHA256_BLOCK_LENGTH); 78 SHA256_Update(&H->sha256, buf, buflen); 91 SHA256_Final(h, &H->sha256); 92 SHA256_Init(&H->sha256); 93 SHA256_Update(&H->sha256, opad, SHA256_BLOCK_LENGTH) [all...] |
| /src/external/bsd/libarchive/dist/libarchive/test/ |
| test_write_format_mtree_preset_digests.c | 35 unsigned char sha256[32]; member in struct:expected_digests 76 assertEqualInt(ARCHIVE_OK, archive_sha256_final(&expectedSha256Ctx, ed.sha256)); 124 assert(memcmp(archive_entry_digest(entry, ARCHIVE_ENTRY_DIGEST_SHA256), ed.sha256, sizeof(ed.sha256)) == 0); 166 assertEqualInt(ARCHIVE_OK, archive_sha256_final(&expectedSha256Ctx, ed.sha256)); 215 assert(memcmp(archive_entry_digest(entry, ARCHIVE_ENTRY_DIGEST_SHA256), ed.sha256, sizeof(ed.sha256)) == 0); 258 assertEqualInt(ARCHIVE_OK, archive_sha256_final(&expectedSha256Ctx, ed.sha256)); 307 assert(memcmp(archive_entry_digest(entry, ARCHIVE_ENTRY_DIGEST_SHA256), ed.sha256, sizeof(ed.sha256)) == 0) [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isc/ |
| md.c | 175 md_register_algorithm(sha256); variable
|
| /src/crypto/external/apache2/openssl/dist/crypto/ct/ |
| ct_sct_ctx.c | 207 EVP_MD *sha256 = EVP_MD_fetch(sctx->libctx, "SHA2-256", sctx->propq); local 209 if (sha256 == NULL) 226 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) 238 EVP_MD_free(sha256);
|
| ct_log.c | 73 /* Converts a log's public key into a SHA256 log ID */ 80 EVP_MD *sha256 = NULL; local 86 sha256 = EVP_MD_fetch(log->libctx, "SHA2-256", log->propq); 87 if (sha256 == NULL) { 92 ret = EVP_Digest(pkey_der, pkey_der_len, log->log_id, &len, sha256, 95 EVP_MD_free(sha256);
|
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| mdtest.c | 84 struct hash_foo sha256 = { variable in typeref:struct:hash_foo 319 hash_test(&sha256, sha256_tests) +
|
| evp-cc.c | 693 * The CommonCrypto sha256 provider 702 static const struct hc_evp_md sha256 = { local 711 return &sha256;
|
| evp-hcrypto.c | 268 * The message digest SHA256 - hcrypto 278 static const struct hc_evp_md sha256 = { local 287 return &sha256;
|
| /src/crypto/external/bsd/openssl/dist/crypto/ct/ |
| ct_sct_ctx.c | 211 EVP_MD *sha256 = EVP_MD_fetch(sctx->libctx, "SHA2-256", sctx->propq); local 213 if (sha256 == NULL) 230 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) 242 EVP_MD_free(sha256);
|
| ct_log.c | 76 /* Converts a log's public key into a SHA256 log ID */ 83 EVP_MD *sha256 = NULL; local 89 sha256 = EVP_MD_fetch(log->libctx, "SHA2-256", log->propq); 90 if (sha256 == NULL) { 95 ret = EVP_Digest(pkey_der, pkey_der_len, log->log_id, &len, sha256, 98 EVP_MD_free(sha256);
|
| /src/crypto/external/apache2/openssl/dist/providers/implementations/kdfs/ |
| scrypt.c | 40 unsigned char *key, size_t keylen, EVP_MD *sha256, 53 EVP_MD *sha256; member in struct:__anon557 84 EVP_MD_free(ctx->sha256); 108 if (src->sha256 != NULL && !EVP_MD_up_ref(src->sha256)) 124 dest->sha256 = src->sha256; 164 EVP_MD_free(ctx->sha256); 165 ctx->sha256 = EVP_MD_fetch(ctx->libctx, "sha256", ctx->propq) [all...] |
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_record_util.c | 92 EVP_MD *sha256; local 98 if ((sha256 = EVP_MD_fetch(libctx, "SHA256", propq)) == NULL) 111 sha256, 124 sha256, 137 sha256, 150 sha256, 156 * ossl_qrx_provide_secret takes ownership of our ref to SHA256, so if we 160 if (qrx != NULL && qtx != NULL && !EVP_MD_up_ref(sha256)) { 161 sha256 = NULL [all...] |
| /src/crypto/external/apache2/openssl/dist/ssl/record/methods/ |
| ssl3_cbc.c | 88 SHA256_CTX *sha256 = ctx; local 92 l2n(sha256->h[i], md_out);
|
| /src/crypto/external/bsd/openssl/dist/providers/implementations/kdfs/ |
| scrypt.c | 39 unsigned char *key, size_t keylen, EVP_MD *sha256, 52 EVP_MD *sha256; member in struct:__anon1604 80 EVP_MD_free(ctx->sha256); 130 EVP_MD_free(ctx->sha256); 131 ctx->sha256 = EVP_MD_fetch(ctx->libctx, "sha256", ctx->propq); 132 if (ctx->sha256 == NULL) { 171 if (ctx->sha256 == NULL && !set_digest(ctx)) 176 ctx->maxmem_bytes, key, keylen, ctx->sha256, 414 unsigned char *key, size_t keylen, EVP_MD *sha256, [all...] |