/linux/drivers/crypto/nx/ |
H A D | nx-sha256.c | 23 __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 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 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 D | tpm2-sessions.c | 105 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 D | sha256-testvecs.h | 6 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 D | sha256_kunit.c | 10 #define HASH_SIZE SHA256_DIGEST_SIZE
|
/linux/security/apparmor/ |
H A D | crypto.c | 21 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 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 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 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/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/drivers/platform/cznic/ |
H A D | turris-omnia-mcu-keyctl.c | 53 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 D | eip93-hash.h | 21 u8 opad[SHA256_DIGEST_SIZE] __aligned(sizeof(u32)); 66 u8 state_hash[SHA256_DIGEST_SIZE] __aligned(sizeof(u32));
|
H A D | eip93-hash.c | 73 * 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 D | fs_kfuncs.c | 197 #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 D | purgatory.h | 22 extern u8 purgatory_sha256_digest[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/crypto/ |
H A D | sha256.c | 103 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 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/lib/crypto/ |
H A D | hash_info.c | 43 [HASH_ALGO_SHA256] = SHA256_DIGEST_SIZE,
|
/linux/arch/s390/crypto/ |
H A D | hmac_s390.c | 132 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()
|