Home
last modified time | relevance | path

Searched full:sha256 (Results 1 – 25 of 128) sorted by relevance

123456

/linux/fs/verity/
H A Dhash_algs.c13 .name = "sha256",
78 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/drivers/crypto/
H A Dpadlock-sha.c228 .cra_name = "sha256",
229 .cra_driver_name = "sha256-padlock",
309 .cra_name = "sha256",
310 .cra_driver_name = "sha256-padlock-nano",
330 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()
360 printk(KERN_NOTICE PFX "Using VIA PadLock ACE for SHA1/SHA256 algorithms.\n"); in padlock_init()
368 printk(KERN_ERR PFX "VIA PadLock SHA1/SHA256 initialization failed.\n"); in padlock_init()
[all …]
/linux/crypto/
H A Dsha256.c3 * Crypto API support for SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256
158 sha256(data, len, out); in crypto_sha256_digest()
249 /* HMAC-SHA256 */
338 .base.cra_name = "sha256",
339 .base.cra_driver_name = "sha256-lib",
376 .base.cra_name = "hmac(sha256)",
377 .base.cra_driver_name = "hmac-sha256-lib",
410 MODULE_DESCRIPTION("Crypto API support for SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256");
414 MODULE_ALIAS_CRYPTO("sha256");
415 MODULE_ALIAS_CRYPTO("sha256-lib");
[all …]
H A Dessiv.c13 * 'essiv(cbc(aes),sha256)', which is the only instantiation used by
16 * e.g., 'essiv(authenc(hmac(sha256),cbc(aes)),sha256)', in which case
504 /* AEAD cipher, e.g., "authenc(hmac(sha256),cbc(aes))" */ in essiv_create()
529 /* Synchronous hash, e.g., "sha256" */ in essiv_create()
/linux/lib/crypto/
H A DMakefile307 libsha256-y := sha256.o
312 libsha256-y += arm/sha256-ce.o arm/sha256-core.o
313 $(obj)/arm/sha256-core.S: $(src)/arm/sha256-armv4.pl
315 AFLAGS_arm/sha256-core.o += $(aflags-thumb2-y)
319 libsha256-y += arm64/sha256-ce.o arm64/sha256-core.o
320 $(obj)/arm64/sha256-core.S: $(src)/arm64/sha2-armv8.pl
324 libsha256-$(CONFIG_PPC) += powerpc/sha256-spe-asm.o
325 libsha256-$(CONFIG_RISCV) += riscv/sha256-riscv64-zvknha_or_zvknhb-zvkb.o
327 libsha256-$(CONFIG_X86) += x86/sha256-ssse3-asm.o \
328 x86/sha256-avx-asm.o \
[all …]
H A Dsha256.c3 * SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 library functions
160 #include "sha256.h" /* $(SRCARCH)/sha256.h */
262 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()
491 * Implementation Guidance, testing HMAC-SHA256 satisfies the in sha256_mod_init()
500 panic("sha256: FIPS self-test failed\n"); in sha256_mod_init()
514 MODULE_DESCRIPTION("SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 library functions");
/linux/include/crypto/
H A Dsha2.h135 * HMAC key and message context structs, shared by HMAC-SHA224 and HMAC-SHA256.
337 * If you don't need incremental computation, consider sha256() instead.
371 * sha256() - Compute SHA-256 message digest in one shot
378 void sha256(const u8 *data, size_t len, u8 out[at_least SHA256_DIGEST_SIZE]);
410 * struct hmac_sha256_key - Prepared key for HMAC-SHA256
418 * struct hmac_sha256_ctx - Context for computing HMAC-SHA256 of a message
426 * hmac_sha256_preparekey() - Prepare a key for HMAC-SHA256
428 * @raw_key: the raw HMAC-SHA256 key
440 * hmac_sha256_init() - Initialize an HMAC-SHA256 context for a new message
455 * hmac_sha256_init_usingrawkey() - Initialize an HMAC-SHA256 context for a new
[all …]
/linux/crypto/asymmetric_keys/
H A Dx509_public_key.c35 /* Calculate a SHA256 hash of the TBS and check it against the in x509_get_sig_params()
38 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/include/linux/
H A Defi_embedded_fw.h28 * @sha256: SHA256 of the firmware
34 u8 sha256[32]; 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…
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 …]
/linux/arch/mips/include/asm/octeon/
H A Dcrypto.h8 * MD5/SHA1/SHA256/SHA512 instruction definitions added by
25 * Macros needed to implement MD5/SHA1/SHA256:
29 * The index can be 0-1 (MD5) or 0-2 (SHA1), 0-3 (SHA256).
40 * The index can be 0-1 (MD5) or 0-2 (SHA1), 0-3 (SHA256).
/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/drivers/s390/crypto/
H A Dzcrypt_ccamisc.h248 u8 new_aes_mkvp[8]; /* truncated sha256 of new aes master key */
249 u8 cur_aes_mkvp[8]; /* truncated sha256 of current aes master key */
250 u8 old_aes_mkvp[8]; /* truncated sha256 of old aes master key */
251 u8 new_apka_mkvp[8]; /* truncated sha256 of new apka master key */
252 u8 cur_apka_mkvp[8]; /* truncated sha256 of current apka mk */
253 u8 old_apka_mkvp[8]; /* truncated sha256 of old apka mk */
/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()
59 aa_info_message("AppArmor sha256 policy hashing enabled"); in init_profile_hash()
/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/Documentation/devicetree/bindings/crypto/
H A Dnvidia,tegra234-se-hash.yaml11 SHA1, SHA224, SHA256, SHA384, SHA512, SHA3-224, SHA3-256, SHA3-384, SHA3-512
12 HMAC(SHA224), HMAC(SHA256), HMAC(SHA384), HMAC(SHA512)
/linux/lib/crypto/sparc/
H A Dsha256.h3 * SHA-256 accelerated using the sparc64 sha256 opcodes
42 pr_info("Using sparc64 sha256 opcode optimized SHA-256/SHA-224 implementation\n"); in sha256_mod_init_arch()
H A Dsha256_asm.S30 SHA256
70 SHA256
/linux/drivers/crypto/ccree/
H A Dcc_hash.h87 * @mode: The Hash mode. Supported modes: MD5/SHA1/SHA224/SHA256/SHA384/SHA512
99 * @mode: The Hash mode. Supported modes: MD5/SHA1/SHA224/SHA256/SHA384/SHA512
/linux/lib/crypto/arm64/
H A Dsha2-armv8.pl26 # SHA256/512 for ARMv8.
31 # SHA256-hw SHA256(*) SHA512
39 # (*) Software SHA256 results are of lesser relevance, presented
52 # version of SHA256 for 64-bit processors. This is because performance
55 # observed that 32-bit NEON SHA256 performs significantly better than
57 # result 64-bit NEON version of SHA256 was added to provide best
61 # Which is why NEON support is limited to SHA256.]
453 # You'll surely note a lot of similarities with sha256-armv4 module,
454 # and of course it's not a coincidence. sha256-armv4 was used as
775 s/\b(sha256\w+)\s+([qv].*)/unsha256($1,$2)/ge;
/linux/samples/tsm-mr/
H A Dtsm_mr_sample.c37 struct sha256_ctx sha256; in sample_report_refresh()
44 sha256_init(&ctx.sha256);
45 sha256_update(&ctx.sha256, mr->mr_value, mr->mr_size); in sample_report_extend_mr()
46 sha256_update(&ctx.sha256, data, mr->mr_size); in sample_report_extend_mr()
47 sha256_final(&ctx.sha256, mr->mr_value); in sample_report_extend_mr()
74 { MR_(rtmr0, SHA256) | TSM_MR_F_LIVE },
79 TSM_MR_(rtmr_crypto_agile, SHA256) | TSM_MR_F_RTMR },
/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/drivers/char/tpm/
H A Dtpm2-sessions.c103 * the maximum sha256 size for the greatest protection
118 * name digest (sha256 again). The session key is constant
239 * algorithm which should be set to sha256) of the public area to
435 * assume hash sha256 and nonces u, v of size SHA256_DIGEST_SIZE but
465 * the hash algorithm is fixed at sha256. Because we know that the
475 * we're only taking 32 bytes for the point using a sha256 in tpm2_KDFe()
1115 sha256(&buf->data[offset_r], len, name + 2); in tpm2_parse_create_primary()
1197 /* creation digest (must be sha256) */ in tpm2_parse_create_primary()
1214 /* the ticket digest HMAC (might not be sha256) */ in tpm2_parse_create_primary()
1221 * finally we have the name, which is a sha256 digest plus a 2 in tpm2_parse_create_primary()
[all …]

123456