Home
last modified time | relevance | path

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

12345678910

/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 …]
H A 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/arch/arm/crypto/
H A 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/arch/arm64/crypto/
H A 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/arch/mips/crypto/
H A 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/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/arch/sparc/crypto/
H A 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/drivers/scsi/pm8001/
H A 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 …]
H A 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()
293 struct sas_ha_struct *sha = dev_id; in pm8001_interrupt_handler_intx() local
294 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_interrupt_handler_intx()
537 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc() local
539 pm8001_ha = sha->lldd_ha; in pm8001_pci_alloc()
548 pm8001_ha->sas = sha; in pm8001_pci_alloc()
608 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init() local
612 memset(sha, 0x00, sizeof(*sha)); in pm8001_prep_sas_ha_init()
620 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init()
[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/arch/s390/crypto/
H A 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)
H A Dhmac_s390.c114 param.sha##x.h[0] = SHA##y ## _H0; \ in hash_key()
115 param.sha##x.h[1] = SHA##y ## _H1; \ in hash_key()
116 param.sha##x.h[2] = SHA##y ## _H2; \ in hash_key()
117 param.sha##x.h[3] = SHA##y ## _H3; \ in hash_key()
118 param.sha##x.h[4] = SHA##y ## _H4; \ in hash_key()
119 param.sha##x.h[5] = SHA##y ## _H5; \ in hash_key()
120 param.sha##x.h[6] = SHA##y ## _H6; \ in hash_key()
121 param.sha##x.h[7] = SHA##y ## _H7; \ in hash_key()
122 param.sha##x.mbl = (z) in hash_key()
283 .digestsize = SHA##x##_DIGEST_SIZE, \
[all …]
/linux/arch/riscv/crypto/
H A DKconfig43 tristate "Hash functions: SHA-224 and SHA-256"
47 SHA-224 and SHA-256 secure hash algorithm (FIPS 180)
54 tristate "Hash functions: SHA-384 and SHA-512"
58 SHA-384 and SHA-512 secure hash algorithm (FIPS 180)
/linux/Documentation/devicetree/bindings/crypto/
H A Datmel,at91sam9g46-sha.yaml5 $id: http://devicetree.org/schemas/crypto/atmel,at91sam9g46-sha.yaml#
8 title: Atmel Secure Hash Algorithm (SHA) HW cryptographic accelerator
16 - const: atmel,at91sam9g46-sha
18 - const: microchip,sam9x7-sha
19 - const: atmel,at91sam9g46-sha
56 sha: crypto@e1814000 {
57 compatible = "atmel,at91sam9g46-sha";
H A Dsamsung-slimsss.yaml16 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC
/linux/arch/x86/crypto/
H A DKconfig432 tristate "Hash functions: SHA-1 (SSSE3/AVX/AVX2/SHA-NI)"
437 SHA-1 secure hash algorithm (FIPS 180)
443 - SHA-NI (SHA Extensions New Instructions)
446 tristate "Hash functions: SHA-224 and SHA-256 (SSSE3/AVX/AVX2/SHA-NI)"
451 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
457 - SHA-NI (SHA Extensions New Instructions)
460 tristate "Hash functions: SHA-384 and SHA-512 (SSSE3/AVX/AVX2)"
465 SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
/linux/arch/powerpc/crypto/
H A DKconfig59 tristate "Hash functions: SHA-1"
62 SHA-1 secure hash algorithm (FIPS 180)
67 tristate "Hash functions: SHA-1 (SPE)"
70 SHA-1 secure hash algorithm (FIPS 180)
76 tristate "Hash functions: SHA-224 and SHA-256 (SPE)"
81 SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
/linux/include/crypto/
H A 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/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 …]

12345678910