Home
last modified time | relevance | path

Searched refs:SHA256_DIGEST_SIZE (Results 1 – 25 of 106) sorted by relevance

12345

/linux/lib/crypto/tests/
H A Dsha256_kunit.c11 #define HASH_SIZE SHA256_DIGEST_SIZE
57 u8 expected_hash1[SHA256_DIGEST_SIZE]; in test_sha256_finup_2x()
58 u8 expected_hash2[SHA256_DIGEST_SIZE]; in test_sha256_finup_2x()
64 hash1 = alloc_guarded_buf(test, SHA256_DIGEST_SIZE); in test_sha256_finup_2x()
65 hash2 = alloc_guarded_buf(test, SHA256_DIGEST_SIZE); in test_sha256_finup_2x()
94 test, hash1, expected_hash1, SHA256_DIGEST_SIZE, in test_sha256_finup_2x()
98 test, hash2, expected_hash2, SHA256_DIGEST_SIZE, in test_sha256_finup_2x()
109 u8 hash1_a[SHA256_DIGEST_SIZE]; in test_sha256_finup_2x_defaultctx()
110 u8 hash2_a[SHA256_DIGEST_SIZE]; in test_sha256_finup_2x_defaultctx()
111 u8 hash1_b[SHA256_DIGEST_SIZE]; in test_sha256_finup_2x_defaultctx()
[all …]
H A Dsha256-testvecs.h6 u8 digest[SHA256_DIGEST_SIZE];
226 static const u8 hash_testvec_consolidated[SHA256_DIGEST_SIZE] = {
233 static const u8 hmac_testvec_consolidated[SHA256_DIGEST_SIZE] = {
/linux/drivers/crypto/nx/
H A Dnx-sha256.c23 __be32 state[SHA256_DIGEST_SIZE / 4];
77 memcpy(csbcpb->cpb.sha256.message_digest, sctx->state, SHA256_DIGEST_SIZE); in nx_sha256_update()
86 data_len = SHA256_DIGEST_SIZE; in nx_sha256_update()
91 if (data_len != SHA256_DIGEST_SIZE) { in nx_sha256_update()
116 SHA256_DIGEST_SIZE); in nx_sha256_update()
135 memcpy(sctx->state, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_update()
163 memcpy(csbcpb->cpb.sha256.input_partial_digest, sctx->state, SHA256_DIGEST_SIZE); in nx_sha256_finup()
178 len = SHA256_DIGEST_SIZE; in nx_sha256_finup()
181 if (len != SHA256_DIGEST_SIZE) { in nx_sha256_finup()
200 memcpy(out, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_finup()
[all …]
/linux/lib/crypto/x86/
H A Dsha256.h45 u8 out1[SHA256_DIGEST_SIZE],
46 u8 out2[SHA256_DIGEST_SIZE]);
51 u8 out1[SHA256_DIGEST_SIZE], in sha256_finup_2x_arch() argument
52 u8 out2[SHA256_DIGEST_SIZE]) in sha256_finup_2x_arch() argument
64 kmsan_unpoison_memory(out1, SHA256_DIGEST_SIZE); in sha256_finup_2x_arch()
65 kmsan_unpoison_memory(out2, SHA256_DIGEST_SIZE); in sha256_finup_2x_arch()
/linux/lib/crypto/arm64/
H A Dsha256.h50 u8 out1[SHA256_DIGEST_SIZE],
51 u8 out2[SHA256_DIGEST_SIZE]);
56 u8 out1[SHA256_DIGEST_SIZE], in sha256_finup_2x_arch() argument
57 u8 out2[SHA256_DIGEST_SIZE]) in sha256_finup_2x_arch() argument
69 kmsan_unpoison_memory(out1, SHA256_DIGEST_SIZE); in sha256_finup_2x_arch()
70 kmsan_unpoison_memory(out2, SHA256_DIGEST_SIZE); in sha256_finup_2x_arch()
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c105 u8 our_nonce[SHA256_DIGEST_SIZE];
106 u8 tpm_nonce[SHA256_DIGEST_SIZE];
126 u8 session_key[SHA256_DIGEST_SIZE];
127 u8 passphrase[SHA256_DIGEST_SIZE];
155 return SHA256_DIGEST_SIZE + 2; in name_size()
369 u8 nonce[SHA256_DIGEST_SIZE]; in tpm_buf_append_hmac_session()
405 len += 9 + 2 * SHA256_DIGEST_SIZE; in tpm_buf_append_hmac_session()
408 tpm_buf_append_u32(buf, 9 + 2 * SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
416 tpm_buf_append_u16(buf, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
417 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
[all …]
/linux/lib/crypto/
H A Dsha256.c245 void sha256_final(struct sha256_ctx *ctx, u8 out[SHA256_DIGEST_SIZE]) in sha256_final() argument
247 __sha256_final(&ctx->ctx, out, SHA256_DIGEST_SIZE); in sha256_final()
262 void sha256(const u8 *data, size_t len, u8 out[SHA256_DIGEST_SIZE]) in sha256() argument
281 u8 out1[SHA256_DIGEST_SIZE], in sha256_finup_2x_arch() argument
282 u8 out2[SHA256_DIGEST_SIZE]) in sha256_finup_2x_arch() argument
295 size_t len, u8 out1[SHA256_DIGEST_SIZE], u8 out2[SHA256_DIGEST_SIZE]) in sha256_finup_2x_sequential() argument
301 __sha256_final(&mut_ctx, out1, SHA256_DIGEST_SIZE); in sha256_finup_2x_sequential()
305 __sha256_final(&mut_ctx, out2, SHA256_DIGEST_SIZE); in sha256_finup_2x_sequential()
309 const u8 *data2, size_t len, u8 out1[SHA256_DIGEST_SIZE], in sha256_finup_2x() argument
310 u8 out2[SHA256_DIGEST_SIZE]) in sha256_finup_2x() argument
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_fsverity.c11 #ifndef SHA256_DIGEST_SIZE
12 #define SHA256_DIGEST_SIZE 32 macro
17 char expected_digest[SIZEOF_STRUCT_FSVERITY_DIGEST + SHA256_DIGEST_SIZE];
18 char digest[SIZEOF_STRUCT_FSVERITY_DIGEST + SHA256_DIGEST_SIZE];
H A Dtest_sig_in_xattr.c13 #ifndef SHA256_DIGEST_SIZE
14 #define SHA256_DIGEST_SIZE 32 macro
38 char digest[MAGIC_SIZE + SIZEOF_STRUCT_FSVERITY_DIGEST + SHA256_DIGEST_SIZE];
/linux/include/crypto/
H A Dsha2.h14 #define SHA256_DIGEST_SIZE 32 macro
63 extern const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE];
368 void sha256_final(struct sha256_ctx *ctx, u8 out[at_least SHA256_DIGEST_SIZE]);
378 void sha256(const u8 *data, size_t len, u8 out[at_least SHA256_DIGEST_SIZE]);
396 u8 out1[at_least SHA256_DIGEST_SIZE],
397 u8 out2[at_least SHA256_DIGEST_SIZE]);
495 u8 out[at_least SHA256_DIGEST_SIZE]);
510 u8 out[at_least SHA256_DIGEST_SIZE]);
527 u8 out[at_least SHA256_DIGEST_SIZE]);
/linux/security/apparmor/
H A Dcrypto.c21 return SHA256_DIGEST_SIZE; in aa_hash_size()
28 hash = kzalloc(SHA256_DIGEST_SIZE, GFP_KERNEL); in aa_calc_hash()
45 profile->hash = kzalloc(SHA256_DIGEST_SIZE, GFP_KERNEL); in aa_calc_profile_hash()
/linux/include/uapi/linux/nfsd/
H A Dcld.h34 #ifndef SHA256_DIGEST_SIZE
35 #define SHA256_DIGEST_SIZE 32 macro
56 unsigned char cp_data[SHA256_DIGEST_SIZE]; /* hash of principal */
/linux/drivers/platform/cznic/
H A Dturris-omnia-mcu-keyctl.c53 u8 cmd[1 + SHA256_DIGEST_SIZE], reply; in omnia_mcu_sign()
61 memcpy(&cmd[1], msg, SHA256_DIGEST_SIZE); in omnia_mcu_sign()
99 .data_size = SHA256_DIGEST_SIZE,
/linux/arch/riscv/purgatory/
H A Dpurgatory.c16 u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE] __section(".kexec-purgatory");
24 u8 digest[SHA256_DIGEST_SIZE]; in verify_sha256_digest()
/linux/arch/x86/purgatory/
H A Dpurgatory.c20 u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE] __section(".kexec-purgatory");
27 u8 digest[SHA256_DIGEST_SIZE]; in verify_sha256_digest()
/linux/drivers/crypto/inside-secure/eip93/
H A Deip93-hash.h21 u8 opad[SHA256_DIGEST_SIZE] __aligned(sizeof(u32));
66 u8 state_hash[SHA256_DIGEST_SIZE] __aligned(sizeof(u32));
H A Deip93-hash.c77 digestsize = SHA256_DIGEST_SIZE; in eip93_hash_handle_result()
153 SHA256_DIGEST_SIZE); in eip93_hash_export_sa_state()
195 memcpy(sa_record_hmac->sa_o_digest, ctx->opad, SHA256_DIGEST_SIZE); in __eip93_hash_init()
453 SHA256_DIGEST_SIZE); in __eip93_hash_final()
605 memcpy(sa_state->state_i_digest, state->state_hash, SHA256_DIGEST_SIZE); in eip93_hash_import()
735 .digestsize = SHA256_DIGEST_SIZE,
859 .digestsize = SHA256_DIGEST_SIZE,
H A Deip93-aead.c354 .maxauthsize = SHA256_DIGEST_SIZE,
470 .maxauthsize = SHA256_DIGEST_SIZE,
582 .maxauthsize = SHA256_DIGEST_SIZE,
694 .maxauthsize = SHA256_DIGEST_SIZE,
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfs_kfuncs.c197 #ifndef SHA256_DIGEST_SIZE
198 #define SHA256_DIGEST_SIZE 32 macro
247 d->digest_size = SHA256_DIGEST_SIZE; in test_fsverity()
/linux/drivers/crypto/qce/
H A Dcommon.c156 __be32 auth[SHA256_DIGEST_SIZE / sizeof(__be32)] = {0}; in qce_setup_regs_ahash()
396 static const u32 std_iv_sha1[SHA256_DIGEST_SIZE / sizeof(u32)] = {
400 static const u32 std_iv_sha256[SHA256_DIGEST_SIZE / sizeof(u32)] = {
430 u32 authiv[SHA256_DIGEST_SIZE / sizeof(u32)] = {0}; in qce_setup_regs_aead()
480 auth_ivsize = SHA256_DIGEST_SIZE; in qce_setup_regs_aead()
H A Dsha.c27 static const u32 std_iv_sha1[SHA256_DIGEST_SIZE / sizeof(u32)] = {
31 static const u32 std_iv_sha256[SHA256_DIGEST_SIZE / sizeof(u32)] = {
353 else if (digestsize == SHA256_DIGEST_SIZE) in qce_ahash_hmac_setkey()
427 .digestsize = SHA256_DIGEST_SIZE,
445 .digestsize = SHA256_DIGEST_SIZE,
/linux/drivers/crypto/chelsio/
H A Dchcr_algo.h307 static const u32 chcr_sha224_init[SHA256_DIGEST_SIZE / 4] = {
312 static const u32 chcr_sha256_init[SHA256_DIGEST_SIZE / 4] = {
344 case SHA256_DIGEST_SIZE: in copy_hash_init_values()
/linux/include/linux/
H A Dpurgatory.h22 extern u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE];
/linux/crypto/
H A Dsha256.c126 const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE] = {
343 .digestsize = SHA256_DIGEST_SIZE,
382 .digestsize = SHA256_DIGEST_SIZE,
/linux/arch/s390/purgatory/
H A Dpurgatory.c18 u8 digest[SHA256_DIGEST_SIZE]; in verify_sha256_digest()

12345