Home
last modified time | relevance | path

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

123

/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()
372 u8 nonce[SHA256_DIGEST_SIZE]; in tpm_buf_append_hmac_session()
408 len += 9 + 2 * SHA256_DIGEST_SIZE; in tpm_buf_append_hmac_session()
411 tpm_buf_append_u32(buf, 9 + 2 * SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
419 tpm_buf_append_u16(buf, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
420 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
[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/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 …]
H A Dhash_info.c43 [HASH_ALGO_SHA256] = 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/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] = {
/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/tools/testing/selftests/bpf/prog_tests/
H A Dfs_kfuncs.c197 #ifndef SHA256_DIGEST_SIZE
198 #define SHA256_DIGEST_SIZE 32
247 d->digest_size = SHA256_DIGEST_SIZE;
69 #define SHA256_DIGEST_SIZE global() macro
/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/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/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/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/arch/s390/purgatory/
H A Dpurgatory.c18 u8 digest[SHA256_DIGEST_SIZE]; in verify_sha256_digest()
/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/drivers/crypto/qce/
H A Dsha.h17 #define QCE_SHA_MAX_DIGESTSIZE SHA256_DIGEST_SIZE
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c789 SHA256_DIGEST_SIZE); in safexcel_ahash_final()
1245 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha256_init()
1246 req->digest_sz = SHA256_DIGEST_SIZE; in safexcel_sha256_init()
1274 .digestsize = SHA256_DIGEST_SIZE,
1302 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha224_init()
1303 req->digest_sz = SHA256_DIGEST_SIZE; in safexcel_sha224_init()
1354 SHA256_DIGEST_SIZE); in safexcel_hmac_sha224_setkey()
1365 memcpy(req->state, &ctx->base.ipad, SHA256_DIGEST_SIZE); in safexcel_hmac_sha224_init()
1372 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha224_init()
1373 req->digest_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha224_init()
[all …]
/linux/drivers/crypto/ccree/
H A Dcc_aead.h18 #define MAX_MAC_SIZE SHA256_DIGEST_SIZE
/linux/sound/soc/codecs/
H A Dcros_ec_codec.c701 memcpy(pp->hash, digest, SHA256_DIGEST_SIZE); in wov_set_lang_shm()
725 memcpy(pp->hash, digest, SHA256_DIGEST_SIZE); in wov_set_lang()
750 uint8_t digest[SHA256_DIGEST_SIZE]; in wov_hotword_model_put()
765 dev_dbg(priv->dev, "hash=%*phN\n", SHA256_DIGEST_SIZE, digest); in wov_hotword_model_put()
774 if (memcmp(digest, r.hash, SHA256_DIGEST_SIZE) == 0) { in wov_hotword_model_put()
/linux/drivers/crypto/
H A Dpadlock-sha.c217 .digestsize = SHA256_DIGEST_SIZE,
300 .digestsize = SHA256_DIGEST_SIZE,
/linux/arch/s390/kernel/
H A Dcert_store.c262 u8 hash[SHA256_DIGEST_SIZE]; in check_certificate_hash()
274 debug_event(cert_store_hexdump, 3, vce_hash, SHA256_DIGEST_SIZE); in check_certificate_hash()
276 debug_event(cert_store_hexdump, 3, hash, SHA256_DIGEST_SIZE); in check_certificate_hash()
/linux/samples/tsm-mr/
H A Dtsm_mr_sample.c14 u8 rtmr0[SHA256_DIGEST_SIZE];
/linux/net/ceph/
H A Dauth_x.c569 BUILD_BUG_ON(SHA256_DIGEST_SIZE + sizeof(*blob) > in ceph_x_build_request()
571 blob = enc_buf + SHA256_DIGEST_SIZE; in ceph_x_build_request()
587 ret = SHA256_DIGEST_SIZE; in ceph_x_build_request()
1078 BUILD_BUG_ON(SHA256_DIGEST_SIZE + sizeof(*sigblock) > in calc_signature()
1080 sigblock = enc_buf + SHA256_DIGEST_SIZE; in calc_signature()

123