Home
last modified time | relevance | path

Searched full:sha (Results 1 – 25 of 198) sorted by relevance

12345678

/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c3 * AMD Cryptographic Coprocessor (CCP) SHA crypto API support
136 rctx->cmd.u.sha.type = rctx->type; in ccp_do_sha_update()
137 rctx->cmd.u.sha.ctx = &rctx->ctx_sg; in ccp_do_sha_update()
141 rctx->cmd.u.sha.ctx_len = SHA1_DIGEST_SIZE; in ccp_do_sha_update()
144 rctx->cmd.u.sha.ctx_len = SHA224_DIGEST_SIZE; in ccp_do_sha_update()
147 rctx->cmd.u.sha.ctx_len = SHA256_DIGEST_SIZE; in ccp_do_sha_update()
150 rctx->cmd.u.sha.ctx_len = SHA384_DIGEST_SIZE; in ccp_do_sha_update()
153 rctx->cmd.u.sha.ctx_len = SHA512_DIGEST_SIZE; in ccp_do_sha_update()
160 rctx->cmd.u.sha.src = sg; in ccp_do_sha_update()
161 rctx->cmd.u.sha.src_len = rctx->hash_cnt; in ccp_do_sha_update()
[all …]
/linux/lib/crypto/tests/
H A DKconfig60 tristate "KUnit tests for SHA-1" if !KUNIT_ALL_TESTS
66 KUnit tests for the SHA-1 cryptographic hash function and its
69 # Option is named *_SHA256_KUNIT_TEST, though both SHA-224 and SHA-256 tests are
72 tristate "KUnit tests for SHA-224 and SHA-256" if !KUNIT_ALL_TESTS
78 KUnit tests for the SHA-224 and SHA-256 cryptographic hash functions
81 # Option is named *_SHA512_KUNIT_TEST, though both SHA-384 and SHA-512 tests are
84 tristate "KUnit tests for SHA-384 and SHA-512" if !KUNIT_ALL_TESTS
90 KUnit tests for the SHA-384 and SHA-512 cryptographic hash functions
94 tristate "KUnit tests for SHA-3" if !KUNIT_ALL_TESTS
/linux/drivers/scsi/mvsas/
H A Dmv_init.c139 struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque; in mvs_tasklet() local
141 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
142 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
152 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
165 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
170 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
173 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
190 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
193 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
331 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z14/
H A Dcrypto.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z13/
H A Dcrypto.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z10/
H A Dcrypto.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_zec12/
H A Dcrypto.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z196/
H A Dcrypto.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z16/
H A Dcrypto6.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z15/
H A Dcrypto6.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z17/
H A Dcrypto6.json14 …"PublicDescription": "This counter counts the total number of CPU cycles when the DEA/AES/SHA copr…
21 …n functions that are issued by the CPU and are blocked because the DEA/AES/SHA coprocessor is busy…
28 …dorandom-number-generation functions issued by the CPU because the DEA/AES/SHA coprocessor is busy…
34 "BriefDescription": "SHA Function Count",
35 …"PublicDescription": "This counter counts the total number of the SHA functions issued by the CPU."
41 "BriefDescription": "SHA Cycle Count",
42 …counter counts the total number of CPU cycles when the SHA coprocessor is busy performing the SHA
48 "BriefDescription": "SHA Blocked Function Count",
49 … counter counts the total number of the SHA functions that are issued by the CPU and are blocked b…
55 "BriefDescription": "SHA Blocked Cycle Count",
[all …]
H A Dpai_crypto.json510 "BriefDescription": "KIMD SHA 1",
511 "PublicDescription": "KIMD-SHA-1 function ending with CC=0"
517 "BriefDescription": "KIMD SHA 256",
518 "PublicDescription": "KIMD-SHA-256 function ending with CC=0"
524 "BriefDescription": "KIMD SHA 512",
525 "PublicDescription": "KIMD-SHA-512 function ending with CC=0"
580 "BriefDescription": "KLMD SHA 1",
581 "PublicDescription": "KLMD-SHA-1 function ending with CC=0"
587 "BriefDescription": "KLMD SHA 256",
588 "PublicDescription": "KLMD-SHA-256 function ending with CC=0"
[all …]
/linux/include/crypto/
H A Dsha2.h3 * Common values for SHA-2 algorithms
117 /* State for the SHA-256 (and SHA-224) compression function */
123 * Context structure, shared by SHA-224 and SHA-256. The sha224_ctx and
125 * doesn't allow mixing the SHA-224 and SHA-256 functions arbitrarily.
151 * struct sha224_ctx - Context for hashing a message with SHA-224
159 * sha224_init() - Initialize a SHA-224 context for a new message
169 * sha224_update() - Update a SHA-224 context with message data
185 * sha224_final() - Finish computing a SHA-224 message digest
187 * @out: (output) the resulting SHA-224 message digest
196 * sha224() - Compute SHA-224 message digest in one shot
[all …]
H A Dsha1.h3 * Common values for SHA-1 algorithms
30 * An implementation of SHA-1's compression function. Don't use in new code!
31 * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't
32 * the correct way to hash something with SHA-1 (use crypto_shash instead).
39 /* State for the SHA-1 compression function */
45 * struct sha1_ctx - Context for hashing a message with SHA-1
57 * sha1_init() - Initialize a SHA-1 context for a new message
67 * sha1_update() - Update a SHA-1 context with message data
79 * sha1_final() - Finish computing a SHA-1 message digest
81 * @out: (output) the resulting SHA-1 message digest
[all …]
/linux/Documentation/crypto/
H A Dsha3.rst4 SHA-3 Algorithm Collection
12 The SHA-3 family of algorithms, as specified in NIST FIPS-202 [1]_, contains six
32 The SHA-3 library API supports all six of these algorithms. The four digest
35 This document describes the SHA-3 library API.
41 The following functions compute SHA-3 digests::
75 The following functions compute the SHA-3 extendable-output functions (XOFs)::
113 To test the SHA-3 code, use sha3_kunit (CONFIG_CRYPTO_LIB_SHA3_KUNIT_TEST).
115 Since the SHA-3 algorithms are FIPS-approved, when the kernel is booted in FIPS
116 mode the SHA-3 library also performs a simple self-test. This is purely to meet
/linux/drivers/crypto/aspeed/
H A DKconfig32 SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and so on.
/linux/include/linux/
H A Dccp.h248 /***** SHA engine *****/
250 * ccp_sha_type - type of SHA operation
252 * @CCP_SHA_TYPE_1: SHA-1 operation
253 * @CCP_SHA_TYPE_224: SHA-224 operation
254 * @CCP_SHA_TYPE_256: SHA-256 operation
266 * struct ccp_sha_engine - CCP SHA operation
267 * @type: Type of SHA operation
274 * @first: indicates first SHA operation
275 * @final: indicates final SHA operation
276 * @msg_bits: total length of the message in bits used in final SHA operation
[all …]
/linux/Documentation/devicetree/bindings/crypto/
H A Dsamsung-slimsss.yaml16 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC
H A Dsamsung-sss.yaml18 -- SHA-1/SHA-256/MD5/HMAC (SHA-1/SHA-256/MD5)/PRNG
/linux/Documentation/ABI/testing/
H A Ddebugfs-pfo-nx-crypto36 The total number of bytes hashed by the hardware using SHA-256.
39 The total number of SHA-256 operations submitted to the hardware.
42 The total number of bytes hashed by the hardware using SHA-512.
45 The total number of SHA-512 operations submitted to the hardware.
/linux/arch/s390/crypto/
H A Dphmac_s390.c214 param.sha##x.h[0] = SHA##y ## _H0; \ in hash_key()
215 param.sha##x.h[1] = SHA##y ## _H1; \ in hash_key()
216 param.sha##x.h[2] = SHA##y ## _H2; \ in hash_key()
217 param.sha##x.h[3] = SHA##y ## _H3; \ in hash_key()
218 param.sha##x.h[4] = SHA##y ## _H4; \ in hash_key()
219 param.sha##x.h[5] = SHA##y ## _H5; \ in hash_key()
220 param.sha##x.h[6] = SHA##y ## _H6; \ in hash_key()
221 param.sha##x.h[7] = SHA##y ## _H7; \ in hash_key()
222 param.sha##x.mbl = (z) in hash_key()
942 .digestsize = SHA##x##_DIGEST_SIZE, \
[all …]
/linux/lib/crypto/
H A DKconfig159 The SHA-1 and HMAC-SHA1 library functions. Select this if your module
176 The SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 library functions.
195 The SHA-384, SHA-512, HMAC-SHA384, and HMAC-SHA512 library functions.
/linux/crypto/
H A DKconfig962 Its speed is comparable to SHA-1 and there are no known attacks
970 tristate "SHA-1"
974 SHA-1 secure hash algorithm (FIPS 180, ISO/IEC 10118-3), including
978 tristate "SHA-224 and SHA-256"
982 SHA-224 and SHA-256 secure hash algorithms (FIPS 180, ISO/IEC
989 tristate "SHA-384 and SHA-512"
993 SHA-384 and SHA-512 secure hash algorithms (FIPS 180, ISO/IEC
997 tristate "SHA-3"
1001 SHA-3 secure hash algorithms (FIPS 202, ISO/IEC 10118-3)
1185 This uses the SHA-1, SHA-256, SHA-384, or SHA-512 hash algorithms.
/linux/lib/crypto/x86/
H A Dsha1-ni-asm.S2 * Intel SHA Extensions optimized implementation of a SHA-1 update function
97 * Intel SHA Extensions optimized implementation of a SHA-1 block function
99 * This function takes a pointer to the current SHA-1 state, a pointer to the
/linux/lib/crypto/sparc/
H A Dsha512.h3 * SHA-512 accelerated using the sparc64 sha512 opcodes
41 pr_info("Using sparc64 sha512 opcode optimized SHA-512/SHA-384 implementation\n"); in sha512_mod_init_arch()

12345678