Home
last modified time | relevance | path

Searched refs:sha256 (Results 1 – 25 of 60) sorted by relevance

123

/linux/fs/verity/
H A Dhash_algs.c78 sha256_init(&ctx.sha256); in fsverity_prepare_hash_state()
79 sha256_update(&ctx.sha256, padded_salt, padded_salt_size); in fsverity_prepare_hash_state()
80 res = kmemdup(&ctx.sha256, sizeof(ctx.sha256), GFP_KERNEL); in fsverity_prepare_hash_state()
116 ctx.sha256 = params->hashstate->sha256; in fsverity_hash_block()
117 sha256_update(&ctx.sha256, data, params->block_size); in fsverity_hash_block()
118 sha256_final(&ctx.sha256, out); in fsverity_hash_block()
142 sha256(data, size, out); in fsverity_hash_buffer()
/linux/crypto/asymmetric_keys/
H A Dx509_public_key.c38 sha256(cert->tbs, cert->tbs_size, cert->sha256); in x509_get_sig_params()
39 ret = is_hash_blacklisted(cert->sha256, sizeof(cert->sha256), in x509_get_sig_params()
43 (int)sizeof(cert->sha256), cert->sha256); in x509_get_sig_params()
/linux/arch/x86/purgatory/
H A DMakefile3 purgatory-y := purgatory.o stack.o setup-x86_$(BITS).o sha256.o entry64.o string.o
11 $(obj)/sha256.o: $(srctree)/lib/crypto/sha256.c FORCE
/linux/fs/btrfs/
H A Dfs.c54 sha256(data, len, out); in btrfs_csum()
76 sha256_init(&ctx->sha256); in btrfs_csum_init()
97 sha256_update(&ctx->sha256, data, len); in btrfs_csum_update()
118 sha256_final(&ctx->sha256, out); in btrfs_csum_final()
/linux/arch/riscv/purgatory/
H A DMakefile3 purgatory-y := purgatory.o sha256.o entry.o string.o ctype.o memcpy.o memset.o
32 $(obj)/sha256.o: $(srctree)/lib/crypto/sha256.c FORCE
/linux/drivers/md/
H A Ddm-verity.h47 struct sha256_ctx *sha256; /* for use_sha256_lib=1 */ member
132 struct sha256_ctx sha256; member
H A Ddm-verity-target.c125 struct sha256_ctx *ctx = &io->hash_ctx.sha256; in verity_hash()
131 *ctx = *v->initial_hashstate.sha256; in verity_hash()
473 sha256_finup_2x(v->initial_hashstate.sha256, in verity_verify_pending_blocks()
1338 offsetofend(struct dm_verity_io, hash_ctx.sha256); in verity_setup_hash_alg()
1367 v->initial_hashstate.sha256 = in verity_setup_salt_and_hashstate()
1369 if (!v->initial_hashstate.sha256) { in verity_setup_salt_and_hashstate()
1373 sha256_init(v->initial_hashstate.sha256); in verity_setup_salt_and_hashstate()
1374 sha256_update(v->initial_hashstate.sha256, in verity_setup_salt_and_hashstate()
/linux/drivers/crypto/
H A Dpadlock-sha.c330 struct shash_alg *sha256; in padlock_init() local
346 sha256 = &sha256_alg; in padlock_init()
349 sha256 = &sha256_alg_nano; in padlock_init()
356 rc = crypto_register_shash(sha256); in padlock_init()
/linux/drivers/platform/x86/
H A Dtouchscreen_dmi.c104 .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59,
149 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
180 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
206 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
236 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
320 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
637 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
722 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
947 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
972 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
/linux/drivers/firmware/efi/
H A Dembedded-firmware.c56 sha256(map + i, desc->length, hash); in efi_check_md_for_embedded_firmware()
57 if (memcmp(hash, desc->sha256, 32) == 0) in efi_check_md_for_embedded_firmware()
/linux/tools/testing/selftests/net/rds/
H A Dtest.py119 data = hashlib.sha256(
136 hashlib.sha256()).update(f'<{data}>'.encode('utf-8'))
154 hashlib.sha256()).update(f'<{data}>'.encode('utf-8'))
/linux/arch/arm64/crypto/
H A D.gitignore2 sha256-core.S
/linux/lib/crypto/arm/
H A D.gitignore3 sha256-core.S
/linux/lib/crypto/arm64/
H A D.gitignore3 sha256-core.S
/linux/arch/arm/crypto/
H A D.gitignore3 sha256-core.S
/linux/Documentation/translations/zh_CN/admin-guide/
H A Dmodule-signing.rst154 openssl req -new -nodes -utf8 -sha256 -days 36500 -batch -x509 \
196 1. 哈希算法(例如,sha256
/linux/include/linux/
H A Defi_embedded_fw.h34 u8 sha256[32]; member
H A Dnvme-auth.h29 struct hmac_sha256_ctx sha256; member
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-crypt.rst25 aes-cbc-essiv:sha256
40 capi:cbc(aes)-essiv:sha256
46 capi:authenc(hmac(sha256),xts(aes))-random
199 …dmsetup create crypt1 --table "0 `blockdev --getsz $1` crypt aes-cbc-essiv:sha256 babebabebabebabe…
205 …dmsetup create crypt2 --table "0 `blockdev --getsize $1` crypt aes-cbc-essiv:sha256 :32:logon:my_p…
/linux/security/apparmor/
H A DKconfig60 bool "Enable introspection of sha256 hashes for loaded profiles"
76 This option selects whether sha256 hashing of loaded policy
77 is enabled by default. The generation of sha256 hashes for
H A Dcrypto.c32 sha256(data, len, hash); in aa_calc_hash()
/linux/drivers/nvme/common/
H A Dauth.c237 hmac_sha256_init_usingrawkey(&hmac->sha256, key, key_len); in nvme_auth_hmac_init()
256 hmac_sha256_update(&hmac->sha256, data, data_len); in nvme_auth_hmac_update()
275 hmac_sha256_final(&hmac->sha256, out); in nvme_auth_hmac_final()
307 sha256(data, data_len, out); in nvme_auth_hash()
/linux/drivers/crypto/nx/
H A DMakefile10 nx-sha256.o \
/linux/net/ipv6/
H A Dseg6_hmac.c157 hmac_sha256(&hinfo->key.sha256, ring, plen, output); in seg6_hmac_compute()
246 hmac_sha256_preparekey(&hinfo->key.sha256, in seg6_hmac_info_add()
/linux/tools/testing/selftests/bpf/
H A Dverify_sig_setup.sh41 openssl req -new -nodes -utf8 -sha256 -days 36500 \

123