Home
last modified time | relevance | path

Searched refs:sha256 (Results 1 – 25 of 67) 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/lib/crypto/
H A DMakefile291 libsha256-y := sha256.o
296 libsha256-y += arm/sha256-ce.o arm/sha256-core.o
297 $(obj)/arm/sha256-core.S: $(src)/arm/sha256-armv4.pl
299 AFLAGS_arm/sha256-core.o += $(aflags-thumb2-y)
303 libsha256-y += arm64/sha256-core.o
304 $(obj)/arm64/sha256-core.S: $(src)/arm64/sha2-armv8.pl
306 libsha256-$(CONFIG_KERNEL_MODE_NEON) += arm64/sha256-ce.o
309 libsha256-$(CONFIG_PPC) += powerpc/sha256-spe-asm.o
310 libsha256-$(CONFIG_RISCV) += riscv/sha256-riscv64-zvknha_or_zvknhb-zvkb.o
312 libsha256-$(CONFIG_X86) += x86/sha256-ssse3-asm.o \
[all …]
H A Dsha256.c262 void sha256(const u8 *data, size_t len, u8 out[SHA256_DIGEST_SIZE]) in sha256() function
270 EXPORT_SYMBOL(sha256);
342 sha256(raw_key, raw_key_len, derived_key.b); in __hmac_sha256_preparekey()
/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/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/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/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/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.py177 send_data = hashlib.sha256(
187 hashlib.sha256()).update(f'<{send_data}>'.encode('utf-8'))
208 receiver.fileno()), hashlib.sha256()).update(
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-ima.rst159 …10 a8c5ff755561c7a28146389d1514c318592af49a ima-buf sha256:4d73481ecce5eadba8ab084640d85bb9ca899af…
200 …10 56c00cc062ffc24ccd9ac2d67d194af3282b934e ima-buf sha256:e7d12c03b958b4e0e53e7363a06376be88d98a1…
204 …active_table_hash=sha256:4d73481ecce5eadba8ab084640d85bb9ca899af4d0a122989252a76efadc5b72;current_…
208 When a device is removed, the device information and a sha256 hash of the
238 …10 790e830a3a7a31590824ac0642b3b31c2d0e8b38 ima-buf sha256:ab9f3c959367a8f5d4403d6ce9c3627dadfa8f9…
243 active_table_hash=sha256:4a7e62efaebfc86af755831998b7db6f59b60d23c9534fb16a4455907957953a,
244 …inactive_table_hash=sha256:9d79c175bc2302d55a183e8f50ad4bafd60f7692fd6249e5fd213e2464384b86,remove…
249 When an inactive table is cleared from the device, the device information and a sha256 hash of the
272 …10 77d347408f557f68f0041acb0072946bb2367fe5 ima-buf sha256:42f9ca22163fdfa548e6229dece2959bc5ce295…
276 …inactive_table_hash=sha256:75c0dc347063bf474d28a9907037eba060bfe39d8847fc0646d75e149045d545;curren…
[all …]
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…
H A Ddm-init.rst86 0 1638400 verity 1 /dev/sdc1 /dev/sdc2 4096 4096 204800 1 sha256
123 0 1638400 verity 1 8:1 8:2 4096 4096 204800 1 sha256
/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/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/include/linux/
H A Defi_embedded_fw.h34 u8 sha256[32]; member
/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/drivers/md/
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()
1342 offsetofend(struct dm_verity_io, hash_ctx.sha256); in verity_setup_hash_alg()
1371 v->initial_hashstate.sha256 = in verity_setup_salt_and_hashstate()
1373 if (!v->initial_hashstate.sha256) { in verity_setup_salt_and_hashstate()
1377 sha256_init(v->initial_hashstate.sha256); in verity_setup_salt_and_hashstate()
1378 sha256_update(v->initial_hashstate.sha256, in verity_setup_salt_and_hashstate()
/linux/drivers/crypto/nx/
H A DMakefile10 nx-sha256.o \
/linux/tools/testing/selftests/bpf/
H A Dverify_sig_setup.sh41 openssl req -new -nodes -utf8 -sha256 -days 36500 \
/linux/Documentation/translations/zh_CN/filesystems/
H A Dubifs.rst88 生成。典型值包括"sha256"或"sha512"

123