Home
last modified time | relevance | path

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

12345678910

/linux-6.8/drivers/crypto/ccp/
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 …]
Dccp-ops.c21 /* SHA initial context values */
1491 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd() local
1503 switch (sha->type) { in ccp_run_sha_cmd()
1505 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd()
1510 if (sha->ctx_len < SHA224_DIGEST_SIZE) in ccp_run_sha_cmd()
1515 if (sha->ctx_len < SHA256_DIGEST_SIZE) in ccp_run_sha_cmd()
1521 || sha->ctx_len < SHA384_DIGEST_SIZE) in ccp_run_sha_cmd()
1527 || sha->ctx_len < SHA512_DIGEST_SIZE) in ccp_run_sha_cmd()
1535 if (!sha->ctx) in ccp_run_sha_cmd()
1538 if (!sha->final && (sha->src_len & (block_size - 1))) in ccp_run_sha_cmd()
[all …]
/linux-6.8/arch/arm/crypto/
DKconfig83 much faster than the SHA-2 family and slightly faster than
84 SHA-1.
87 tristate "Hash functions: SHA-1"
91 SHA-1 secure hash algorithm (FIPS 180)
96 tristate "Hash functions: SHA-1 (NEON)"
102 SHA-1 secure hash algorithm (FIPS 180)
108 tristate "Hash functions: SHA-1 (ARMv8 Crypto Extensions)"
113 SHA-1 secure hash algorithm (FIPS 180)
118 tristate "Hash functions: SHA-224 and SHA-256 (ARMv8 Crypto Extensions)"
123 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
[all …]
/linux-6.8/arch/arm64/crypto/
DKconfig40 tristate "Hash functions: SHA-1 (ARMv8 Crypto Extensions)"
45 SHA-1 secure hash algorithm (FIPS 180)
51 tristate "Hash functions: SHA-224 and SHA-256"
54 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
59 tristate "Hash functions: SHA-224 and SHA-256 (ARMv8 Crypto Extensions)"
64 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
70 tristate "Hash functions: SHA-384 and SHA-512"
73 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
78 tristate "Hash functions: SHA-384 and SHA-512 (ARMv8 Crypto Extensions)"
83 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
[all …]
/linux-6.8/arch/mips/crypto/
DKconfig34 tristate "Hash functions: SHA-1 (OCTEON)"
39 SHA-1 secure hash algorithm (FIPS 180)
44 tristate "Hash functions: SHA-224 and SHA-256 (OCTEON)"
49 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
54 tristate "Hash functions: SHA-384 and SHA-512 (OCTEON)"
59 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
/linux-6.8/drivers/scsi/mvsas/
Dmv_init.c154 struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque; in mvs_tasklet() local
156 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
157 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
167 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
180 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
185 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
188 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
205 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
208 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
346 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
[all …]
/linux-6.8/tools/perf/pmu-events/arch/s390/cf_z10/
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-6.8/tools/perf/pmu-events/arch/s390/cf_z196/
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-6.8/tools/perf/pmu-events/arch/s390/cf_zec12/
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-6.8/tools/perf/pmu-events/arch/s390/cf_z14/
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-6.8/tools/perf/pmu-events/arch/s390/cf_z13/
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-6.8/arch/sparc/crypto/
DKconfig40 tristate "Hash functions: SHA-1"
45 SHA-1 secure hash algorithm (FIPS 180)
50 tristate "Hash functions: SHA-224 and SHA-256"
55 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
60 tristate "Hash functions: SHA-384 and SHA-512"
65 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
/linux-6.8/drivers/scsi/pm8001/
Dpm8001_ctl.c60 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show() local
61 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show()
86 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in controller_fatal_error_show() local
87 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in controller_fatal_error_show()
106 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_fw_version_show() local
107 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_fw_version_show()
137 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_ila_version_show() local
138 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_ila_version_show()
163 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_inactive_fw_version_show() local
164 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_inactive_fw_version_show()
[all …]
Dpm8001_init.c99 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_map_queues() local
100 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_map_queues()
308 struct sas_ha_struct *sha = dev_id; in pm8001_interrupt_handler_intx() local
309 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_interrupt_handler_intx()
552 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc() local
554 pm8001_ha = sha->lldd_ha; in pm8001_pci_alloc()
563 pm8001_ha->sas = sha; in pm8001_pci_alloc()
623 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init() local
627 memset(sha, 0x00, sizeof(*sha)); in pm8001_prep_sas_ha_init()
635 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init()
[all …]
/linux-6.8/tools/perf/pmu-events/arch/s390/cf_z15/
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-6.8/tools/perf/pmu-events/arch/s390/cf_z16/
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-6.8/arch/s390/crypto/
DKconfig18 tristate "Hash functions: SHA-384 and SHA-512"
22 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
29 tristate "Hash functions: SHA-1"
33 SHA-1 secure hash algorithm (FIPS 180)
40 tristate "Hash functions: SHA-224 and SHA-256"
44 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
/linux-6.8/arch/powerpc/crypto/
DKconfig48 tristate "Hash functions: SHA-1"
51 SHA-1 secure hash algorithm (FIPS 180)
56 tristate "Hash functions: SHA-1 (SPE)"
59 SHA-1 secure hash algorithm (FIPS 180)
65 tristate "Hash functions: SHA-224 and SHA-256 (SPE)"
70 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
/linux-6.8/arch/x86/crypto/
DKconfig427 tristate "Hash functions: SHA-1 (SSSE3/AVX/AVX2/SHA-NI)"
432 SHA-1 secure hash algorithm (FIPS 180)
438 - SHA-NI (SHA Extensions New Instructions)
441 tristate "Hash functions: SHA-224 and SHA-256 (SSSE3/AVX/AVX2/SHA-NI)"
446 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
452 - SHA-NI (SHA Extensions New Instructions)
455 tristate "Hash functions: SHA-384 and SHA-512 (SSSE3/AVX/AVX2)"
460 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
/linux-6.8/include/crypto/
Dsha1.h3 * Common values for SHA-1 algorithms
37 * An implementation of SHA-1's compression function. Don't use in new code!
38 * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't
39 * the correct way to hash something with SHA-1 (use crypto_shash instead).
/linux-6.8/drivers/crypto/aspeed/
DKconfig32 SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and so on.
/linux-6.8/Documentation/devicetree/bindings/crypto/
Datmel,at91sam9g46-sha.yaml5 $id: http://devicetree.org/schemas/crypto/atmel,at91sam9g46-sha.yaml#
8 title: Atmel Secure Hash Algorithm (SHA) HW cryptographic accelerator
15 const: atmel,at91sam9g46-sha
52 sha: crypto@e1814000 {
53 compatible = "atmel,at91sam9g46-sha";
Dsamsung-slimsss.yaml16 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC
/linux-6.8/include/linux/
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-6.8/Documentation/ABI/testing/
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.

12345678910