Home
last modified time | relevance | path

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

1234

/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/net/mptcp/
H A Dcrypto.c29 #define SHA256_DIGEST_WORDS (SHA256_DIGEST_SIZE / 4)
46 u8 input[SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE]; in mptcp_crypto_hmac_sha()
51 if (WARN_ON_ONCE(len > SHA256_DIGEST_SIZE)) in mptcp_crypto_hmac_sha()
52 len = SHA256_DIGEST_SIZE; in mptcp_crypto_hmac_sha()
78 sha256(input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE, hmac); in mptcp_crypto_hmac_sha()
/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
28 * plus SHA256_DIGEST_SIZE. The magic part of it is filled by user space,
38 char digest[MAGIC_SIZE + SIZEOF_STRUCT_FSVERITY_DIGEST + SHA256_DIGEST_SIZE];
/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];
151 [TPM_ALG_SHA256] = SHA256_DIGEST_SIZE, in name_size()
324 u8 nonce[SHA256_DIGEST_SIZE]; in tpm_buf_append_hmac_session()
361 len += 9 + 2 * SHA256_DIGEST_SIZE; in tpm_buf_append_hmac_session()
364 tpm_buf_append_u32(buf, 9 + 2 * SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
372 tpm_buf_append_u16(buf, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
373 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
[all...]
/linux/lib/crypto/tests/
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] = {
H A Dsha256_kunit.c10 #define HASH_SIZE 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/include/crypto/
H A Dsha2.h14 #define SHA256_DIGEST_SIZE 32 macro
63 extern const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE];
366 void sha256_final(struct sha256_ctx *ctx, u8 out[SHA256_DIGEST_SIZE]);
376 void sha256(const u8 *data, size_t len, u8 out[SHA256_DIGEST_SIZE]);
463 void hmac_sha256_final(struct hmac_sha256_ctx *ctx, u8 out[SHA256_DIGEST_SIZE]);
477 const u8 *data, size_t data_len, u8 out[SHA256_DIGEST_SIZE]);
494 u8 out[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/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/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.c73 * With partial_hash assume SHA256_DIGEST_SIZE buffer is passed. in eip93_hash_handle_result()
77 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,
/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/include/linux/
H A Dpurgatory.h22 extern u8 purgatory_sha256_digest[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/crypto/
H A Dsha256.c103 const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE] = {
278 .digestsize = SHA256_DIGEST_SIZE,
313 .digestsize = SHA256_DIGEST_SIZE,
/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,
H A Dsha.h17 #define QCE_SHA_MAX_DIGESTSIZE SHA256_DIGEST_SIZE
/linux/arch/s390/purgatory/
H A Dpurgatory.c18 u8 digest[SHA256_DIGEST_SIZE]; in verify_sha256_digest()
/linux/lib/crypto/
H A Dhash_info.c43 [HASH_ALGO_SHA256] = SHA256_DIGEST_SIZE,
/linux/arch/s390/crypto/
H A Dhmac_s390.c132 digestsize = SHA256_DIGEST_SIZE; in hash_data()
134 case SHA256_DIGEST_SIZE: in hash_data()
199 case SHA256_DIGEST_SIZE: in s390_hmac_sha2_init()

1234