/linux/drivers/crypto/nx/ |
H A D | nx-sha256.c | 20 __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 D | crypto.c | 29 #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 D | test_fsverity.c | 11 #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 D | test_sig_in_xattr.c | 13 #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 D | tpm2-sessions.c | 110 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 D | cld.h | 34 #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 D | sha2.h | 14 #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 D | purgatory.c | 16 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 D | fs_kfuncs.c | 68 #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 D | purgatory.c | 20 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 D | sha256_glue.c | 102 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 D | sha256_generic.c | 28 const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE] = { 62 .digestsize = SHA256_DIGEST_SIZE,
|
H A D | hash_info.c | 43 [HASH_ALGO_SHA256] = SHA256_DIGEST_SIZE,
|
/linux/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha256.c | 166 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 D | sha256-spe-glue.c | 147 __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 D | sha256_ssse3_glue.c | 121 .digestsize = SHA256_DIGEST_SIZE, 194 .digestsize = SHA256_DIGEST_SIZE, 278 .digestsize = SHA256_DIGEST_SIZE, 361 .digestsize = SHA256_DIGEST_SIZE,
|
/linux/drivers/crypto/ |
H A D | padlock-sha.c | 173 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 D | purgatory.h | 22 extern u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE];
|
/linux/arch/arm64/crypto/ |
H A D | sha256-glue.c | 67 .digestsize = SHA256_DIGEST_SIZE, 147 .digestsize = SHA256_DIGEST_SIZE,
|
/linux/drivers/crypto/chelsio/ |
H A D | chcr_algo.h | 307 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 D | common.c | 156 __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 D | sha.c | 27 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 D | sha.h | 17 #define QCE_SHA_MAX_DIGESTSIZE SHA256_DIGEST_SIZE
|
/linux/arch/s390/purgatory/ |
H A D | purgatory.c | 18 u8 digest[SHA256_DIGEST_SIZE]; in verify_sha256_digest()
|
/linux/arch/arm/crypto/ |
H A D | sha256_neon_glue.c | 65 .digestsize = SHA256_DIGEST_SIZE,
|