/linux/drivers/crypto/ccp/ |
H A D | ccp-crypto-sha.c | 3 * 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 D | ccp-ops.c | 21 /* 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 D | Kconfig | 83 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 D | Kconfig | 40 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 D | Kconfig | 34 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 D | crypto.json | 14 …"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 D | crypto.json | 14 …"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 D | crypto.json | 14 …"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 D | crypto.json | 14 …"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 D | crypto.json | 14 …"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 D | Kconfig | 40 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 D | pm8001_ctl.c | 60 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 D | pm8001_init.c | 99 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 D | crypto6.json | 14 …"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 D | crypto6.json | 14 …"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 D | Kconfig | 18 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 D | hmac_s390.c | 114 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 D | Kconfig | 43 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 D | atmel,at91sam9g46-sha.yaml | 5 $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 D | samsung-slimsss.yaml | 16 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC
|
/linux/arch/x86/crypto/ |
H A D | Kconfig | 432 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 D | Kconfig | 59 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 D | sha1.h | 3 * 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 D | Kconfig | 32 SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and so on.
|
/linux/include/linux/ |
H A D | ccp.h | 248 /***** 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 …]
|