| /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 | 22 /* SHA initial context values */ 1501 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd() local 1513 switch (sha->type) { in ccp_run_sha_cmd() 1515 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd() 1520 if (sha->ctx_len < SHA224_DIGEST_SIZE) in ccp_run_sha_cmd() 1525 if (sha->ctx_len < SHA256_DIGEST_SIZE) in ccp_run_sha_cmd() 1531 || sha->ctx_len < SHA384_DIGEST_SIZE) in ccp_run_sha_cmd() 1537 || sha->ctx_len < SHA512_DIGEST_SIZE) in ccp_run_sha_cmd() 1545 if (!sha->ctx) in ccp_run_sha_cmd() 1548 if (!sha->final && (sha->src_len & (block_size - 1))) in ccp_run_sha_cmd() [all …]
|
| /linux/lib/crypto/tests/ |
| H A D | Kconfig | 77 tristate "KUnit tests for SHA-1" if !KUNIT_ALL_TESTS 83 KUnit tests for the SHA-1 cryptographic hash function and its 86 # Option is named *_SHA256_KUNIT_TEST, though both SHA-224 and SHA-256 tests are 89 tristate "KUnit tests for SHA-224 and SHA-256" if !KUNIT_ALL_TESTS 95 KUnit tests for the SHA-224 and SHA-256 cryptographic hash functions 98 # Option is named *_SHA512_KUNIT_TEST, though both SHA-384 and SHA [all...] |
| /linux/drivers/scsi/mvsas/ |
| H A D | mv_init.c | 139 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 …]
|
| H A D | mv_sas.c | 60 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_mvi() local 64 while (sha->sas_port[i]) { in mvs_find_dev_mvi() 65 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_mvi() 66 spin_lock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_mvi() 67 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi() 69 spin_unlock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_mvi() 71 while (sha->sas_phy[j]) { in mvs_find_dev_mvi() 72 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi() 80 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi() 81 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_find_dev_mvi() [all …]
|
| /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/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/tools/perf/pmu-events/arch/s390/cf_z17/ |
| 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 …]
|
| H A D | pai_crypto.json | 510 "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 D | sha2.h | 3 * 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 …]
|
| /linux/Documentation/crypto/ |
| H A D | sha3.rst | 4 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/scsi/pm8001/ |
| H A D | pm8001_init.c | 103 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_map_queues() local 104 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_map_queues() 298 struct sas_ha_struct *sha = dev_id; in pm8001_interrupt_handler_intx() local 299 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_interrupt_handler_intx() 539 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc() local 541 pm8001_ha = sha->lldd_ha; in pm8001_pci_alloc() 550 pm8001_ha->sas = sha; in pm8001_pci_alloc() 611 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init() local 615 memset(sha, 0x00, sizeof(*sha)); in pm8001_prep_sas_ha_init() 623 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init() [all …]
|
| /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 …]
|
| /linux/Documentation/devicetree/bindings/crypto/ |
| H A D | samsung-slimsss.yaml | 16 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC
|
| H A D | samsung-sss.yaml | 18 -- SHA-1/SHA-256/MD5/HMAC (SHA-1/SHA-256/MD5)/PRNG
|
| /linux/Documentation/ABI/testing/ |
| H A D | debugfs-pfo-nx-crypto | 36 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/lib/crypto/ |
| H A D | Kconfig | 192 The SHA-1 and HMAC-SHA1 library functions. Select this if your module 209 The SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 library functions. 229 The SHA-384, SHA-512, HMAC-SHA384, and HMAC-SHA512 library functions.
|
| /linux/lib/crypto/x86/ |
| H A D | sha1-ni-asm.S | 2 * 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 D | sha512.h | 3 * 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()
|