Home
last modified time | relevance | path

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

1234

/linux/drivers/crypto/nx/
H A Dnx-sha256.c20 __be32 state[SHA256_DIGEST_SIZE / 4];
88 memcpy(csbcpb->cpb.sha256.message_digest, sctx->state, SHA256_DIGEST_SIZE); in nx_sha256_update()
97 data_len = SHA256_DIGEST_SIZE; in nx_sha256_update()
102 if (data_len != SHA256_DIGEST_SIZE) { in nx_sha256_update()
151 SHA256_DIGEST_SIZE); in nx_sha256_update()
175 memcpy(sctx->state, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_update()
204 memcpy(csbcpb->cpb.sha256.input_partial_digest, sctx->state, SHA256_DIGEST_SIZE); in nx_sha256_final()
223 len = SHA256_DIGEST_SIZE; in nx_sha256_final()
226 if (len != SHA256_DIGEST_SIZE) { in nx_sha256_final()
245 memcpy(out, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_final()
[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
38 char digest[MAGIC_SIZE + SIZEOF_STRUCT_FSVERITY_DIGEST + SHA256_DIGEST_SIZE];
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c110 u8 our_nonce[SHA256_DIGEST_SIZE];
111 u8 tpm_nonce[SHA256_DIGEST_SIZE];
132 u8 passphrase[SHA256_DIGEST_SIZE];
306 u8 nonce[SHA256_DIGEST_SIZE]; in tpm_buf_append_hmac_session()
454 bytes -= SHA256_DIGEST_SIZE; in tpm2_KDFa()
456 out += SHA256_DIGEST_SIZE; in tpm2_KDFa()
594 u8 cphash[SHA256_DIGEST_SIZE]; in tpm_buf_fill_hmac_session()
751 u8 rphash[SHA256_DIGEST_SIZE]; in tpm_buf_check_hmac_response()
799 if (len != SHA256_DIGEST_SIZE) in tpm_buf_check_hmac_response()
807 if (len != SHA256_DIGEST_SIZE) in tpm_buf_check_hmac_response()
[all …]
/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
61 extern const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE];
68 u32 state[SHA256_DIGEST_SIZE / 4];
/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/tools/testing/selftests/bpf/prog_tests/
H A Dfs_kfuncs.c68 #ifndef SHA256_DIGEST_SIZE
69 #define SHA256_DIGEST_SIZE 32 macro
118 d->digest_size = SHA256_DIGEST_SIZE; in test_fsverity()
/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/arch/sparc/crypto/
H A Dsha256_glue.c102 u8 D[SHA256_DIGEST_SIZE]; in sha224_sparc64_final()
107 memzero_explicit(D, SHA256_DIGEST_SIZE); in sha224_sparc64_final()
129 .digestsize = SHA256_DIGEST_SIZE,
/linux/crypto/
H A Dsha256_generic.c28 const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE] = {
62 .digestsize = SHA256_DIGEST_SIZE,
H A Dhash_info.c43 [HASH_ALGO_SHA256] = SHA256_DIGEST_SIZE,
/linux/arch/mips/cavium-octeon/crypto/
H A Docteon-sha256.c166 u8 D[SHA256_DIGEST_SIZE]; in octeon_sha224_final()
171 memzero_explicit(D, SHA256_DIGEST_SIZE); in octeon_sha224_final()
193 .digestsize = SHA256_DIGEST_SIZE,
/linux/arch/powerpc/crypto/
H A Dsha256-spe-glue.c147 __be32 D[SHA256_DIGEST_SIZE >> 2]; in ppc_spe_sha224_final()
162 memzero_explicit(D, SHA256_DIGEST_SIZE); in ppc_spe_sha224_final()
183 .digestsize = SHA256_DIGEST_SIZE,
/linux/arch/x86/crypto/
H A Dsha256_ssse3_glue.c121 .digestsize = SHA256_DIGEST_SIZE,
194 .digestsize = SHA256_DIGEST_SIZE,
278 .digestsize = SHA256_DIGEST_SIZE,
361 .digestsize = SHA256_DIGEST_SIZE,
/linux/drivers/crypto/
H A Dpadlock-sha.c173 memcpy(result, &state.state, SHA256_DIGEST_SIZE); in padlock_sha256_finup()
245 .digestsize = SHA256_DIGEST_SIZE,
379 memcpy(dst, (u8 *)(sctx->state), SHA256_DIGEST_SIZE); in padlock_sha256_update_nano()
407 memcpy((u8 *)(sctx->state), dst, SHA256_DIGEST_SIZE); in padlock_sha256_update_nano()
476 .digestsize = SHA256_DIGEST_SIZE,
/linux/include/linux/
H A Dpurgatory.h22 extern u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE];
/linux/arch/arm64/crypto/
H A Dsha256-glue.c67 .digestsize = SHA256_DIGEST_SIZE,
147 .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/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/arch/arm/crypto/
H A Dsha256_neon_glue.c65 .digestsize = SHA256_DIGEST_SIZE,

1234