| /kernel/linux/linux-4.19/drivers/crypto/mediatek/ |
| D | mtk-sha.c | 12 * Some ideas are from atmel-sha.c and omap-sham.c drivers. 16 #include <crypto/sha.h> 17 #include "mtk-platform.h" 19 #define SHA_ALIGN_MSK (sizeof(u32) - 1) 23 #define SHA_OP_UPDATE 1 29 /* SHA command token */ 36 /* SHA transform information */ 49 /* SHA flags */ 51 #define SHA_FLAGS_FINAL BIT(1) 64 * mtk_sha_info - hardware information of AES [all …]
|
| D | mtk-platform.h | 21 #include <linux/dma-mapping.h> 24 #include "mtk-regs.h" 29 #define MTK_IRQ_RDR0 BIT(1) 37 * Ring 0/1 are used by AES encrypt and decrypt. 38 * Ring 2/3 are used by SHA. 52 * struct mtk_desc - DMA descriptor 57 * @tag: the user-defined field 76 #define MTK_DESC_SZ (MTK_DESC_OFF - 2) 85 * struct mtk_ring - Descriptor ring 109 * struct mtk_aes_dma - Structure that holds sg list info [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/mediatek/ |
| D | mtk-sha.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Some ideas are from atmel-sha.c and omap-sham.c drivers. 13 #include <crypto/sha.h> 14 #include "mtk-platform.h" 16 #define SHA_ALIGN_MSK (sizeof(u32) - 1) 20 #define SHA_OP_UPDATE 1 26 /* SHA command token */ 33 /* SHA transform information */ 46 /* SHA flags */ 48 #define SHA_FLAGS_FINAL BIT(1) [all …]
|
| D | mtk-platform.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 17 #include <linux/dma-mapping.h> 20 #include "mtk-regs.h" 25 #define MTK_IRQ_RDR0 BIT(1) 33 * Ring 0/1 are used by AES encrypt and decrypt. 34 * Ring 2/3 are used by SHA. 48 * struct mtk_desc - DMA descriptor 53 * @tag: the user-defined field 72 #define MTK_DESC_SZ (MTK_DESC_OFF - 2) 81 * struct mtk_ring - Descriptor ring [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/mvsas/ |
| D | mv_init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright 2009-2011 Marvell. <yuxiangl@marvell.com> 17 [chip_6320] = { 1, 2, 0x400, 17, 16, 6, 9, &mvs_64xx_dispatch, }, 18 [chip_6440] = { 1, 4, 0x400, 17, 16, 6, 9, &mvs_64xx_dispatch, }, 19 [chip_6485] = { 1, 8, 0x800, 33, 32, 6, 10, &mvs_64xx_dispatch, }, 22 [chip_9445] = { 1, 4, 0x800, 17, 64, 8, 11, &mvs_94xx_dispatch, }, 24 [chip_1300] = { 1, 4, 0x400, 17, 16, 6, 9, &mvs_64xx_dispatch, }, 43 .can_queue = 1, 44 .this_id = -1, 56 .track_queue_depth = 1, [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/ccp/ |
| D | ccp-crypto-sha.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AMD Cryptographic Coprocessor (CCP) SHA crypto API support 20 #include <crypto/sha.h> 24 #include "ccp-crypto.h" 36 if (rctx->hash_rem) { in ccp_sha_complete() 38 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_sha_complete() 40 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_sha_complete() 41 offset, rctx->hash_rem, 0); in ccp_sha_complete() 42 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete() 44 rctx->buf_count = 0; in ccp_sha_complete() [all …]
|
| D | ccp-ops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013-2019 Advanced Micro Devices, Inc. 11 #include <linux/dma-mapping.h> 19 #include "ccp-dev.h" 21 /* SHA initial context values */ 56 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \ 61 return atomic_inc_return(&ccp->current_id) & CCP_JOBID_MASK; in ccp_gen_jobid() 66 if (wa->dma_count) in ccp_sg_free() 67 dma_unmap_sg(wa->dma_dev, wa->dma_sg_head, wa->nents, wa->dma_dir); in ccp_sg_free() 69 wa->dma_count = 0; in ccp_sg_free() [all …]
|
| /kernel/linux/linux-4.19/drivers/crypto/ccp/ |
| D | ccp-crypto-sha.c | 2 * AMD Cryptographic Coprocessor (CCP) SHA crypto API support 23 #include <crypto/sha.h> 26 #include "ccp-crypto.h" 38 if (rctx->hash_rem) { in ccp_sha_complete() 40 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_sha_complete() 42 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_sha_complete() 43 offset, rctx->hash_rem, 0); in ccp_sha_complete() 44 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete() 46 rctx->buf_count = 0; in ccp_sha_complete() 50 if (req->result && rctx->final) in ccp_sha_complete() [all …]
|
| D | ccp-ops.c | 22 #include "ccp-dev.h" 24 /* SHA initial context values */ 59 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \ 64 return atomic_inc_return(&ccp->current_id) & CCP_JOBID_MASK; in ccp_gen_jobid() 69 if (wa->dma_count) in ccp_sg_free() 70 dma_unmap_sg(wa->dma_dev, wa->dma_sg_head, wa->nents, wa->dma_dir); in ccp_sg_free() 72 wa->dma_count = 0; in ccp_sg_free() 81 wa->sg = sg; in ccp_init_sg_workarea() 85 wa->nents = sg_nents_for_len(sg, len); in ccp_init_sg_workarea() 86 if (wa->nents < 0) in ccp_init_sg_workarea() [all …]
|
| /kernel/linux/linux-4.19/drivers/scsi/mvsas/ |
| D | mv_init.c | 6 * Copyright 2009-2011 Marvell. <yuxiangl@marvell.com> 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 33 [chip_6320] = { 1, 2, 0x400, 17, 16, 6, 9, &mvs_64xx_dispatch, }, 34 [chip_6440] = { 1, 4, 0x400, 17, 16, 6, 9, &mvs_64xx_dispatch, }, 35 [chip_6485] = { 1, 8, 0x800, 33, 32, 6, 10, &mvs_64xx_dispatch, }, 38 [chip_9445] = { 1, 4, 0x800, 17, 64, 8, 11, &mvs_94xx_dispatch, }, 40 [chip_1300] = { 1, 4, 0x400, 17, 16, 6, 9, &mvs_64xx_dispatch, }, 58 .can_queue = 1, 59 .this_id = -1, 68 .track_queue_depth = 1, [all …]
|
| /kernel/linux/linux-4.19/arch/arm/crypto/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 13 tristate "SHA1 digest algorithm (ARM-asm)" 17 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 27 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 37 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 41 tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)" 46 SHA-256 secure hash standard (DFIPS 180-2) implemented 50 tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)" 54 SHA-256 secure hash standard (DFIPS 180-2) implemented 58 tristate "SHA-384/512 digest algorithm (ARM-asm and NEON)" [all …]
|
| /kernel/linux/linux-5.10/arch/arm/crypto/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 13 tristate "SHA1 digest algorithm (ARM-asm)" 17 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 27 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 37 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented 41 tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)" 46 SHA-256 secure hash standard (DFIPS 180-2) implemented 50 tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)" 54 SHA-256 secure hash standard (DFIPS 180-2) implemented 58 tristate "SHA-384/512 digest algorithm (ARM-asm and NEON)" [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/pm8001/ |
| D | pm8001_ctl.c | 2 * PMC-Sierra 8001/8081/8088/8089 SAS/SATA based host adapters driver 4 * Copyright (c) 2008-2009 USI Co., Ltd. 10 * 1. Redistributions of source code must retain the above copyright 18 * 3. Neither the names of the above-listed copyright holders nor the names 48 * pm8001_ctl_mpi_interface_rev_show - MPI interface revision number 53 * A sysfs 'read-only' shost attribute. 59 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show() local 60 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show() 62 if (pm8001_ha->chip_id == chip_8001) { in pm8001_ctl_mpi_interface_rev_show() 64 pm8001_ha->main_cfg_tbl.pm8001_tbl.interface_rev); in pm8001_ctl_mpi_interface_rev_show() [all …]
|
| D | pm8001_init.c | 2 * PMC-Sierra PM8001/8081/8088/8089 SAS/SATA based host adapters driver 4 * Copyright (c) 2008-2009 USI Co., Ltd. 10 * 1. Redistributions of source code must retain the above copyright 18 * 3. Neither the names of the above-listed copyright holders nor the names 53 " 1: Link rate 1.5G\n" 68 [chip_8009] = {1, 8, &pm8001_80xx_dispatch,}, 70 [chip_8019] = {1, 16, &pm8001_80xx_dispatch,}, 98 .can_queue = 1, 99 .this_id = -1, 111 .track_queue_depth = 1, [all …]
|
| /kernel/linux/linux-4.19/arch/arm64/crypto/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 13 tristate "SHA-224/SHA-256 digest algorithm for arm64" 17 tristate "SHA-384/SHA-512 digest algorithm for arm64" 21 tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)" 27 tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)" 33 tristate "SHA-384/SHA-512 digest algorithm (ARMv8 Crypto Extensions)" 57 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions" 115 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
|
| /kernel/linux/linux-4.19/drivers/scsi/pm8001/ |
| D | pm8001_ctl.c | 2 * PMC-Sierra 8001/8081/8088/8089 SAS/SATA based host adapters driver 4 * Copyright (c) 2008-2009 USI Co., Ltd. 10 * 1. Redistributions of source code must retain the above copyright 18 * 3. Neither the names of the above-listed copyright holders nor the names 48 * pm8001_ctl_mpi_interface_rev_show - MPI interface revision number 52 * A sysfs 'read-only' shost attribute. 58 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show() local 59 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show() 61 if (pm8001_ha->chip_id == chip_8001) { in pm8001_ctl_mpi_interface_rev_show() 63 pm8001_ha->main_cfg_tbl.pm8001_tbl.interface_rev); in pm8001_ctl_mpi_interface_rev_show() [all …]
|
| D | pm8001_init.c | 2 * PMC-Sierra PM8001/8081/8088/8089 SAS/SATA based host adapters driver 4 * Copyright (c) 2008-2009 USI Co., Ltd. 10 * 1. Redistributions of source code must retain the above copyright 18 * 3. Neither the names of the above-listed copyright holders nor the names 54 [chip_8009] = {1, 8, &pm8001_80xx_dispatch,}, 56 [chip_8019] = {1, 16, &pm8001_80xx_dispatch,}, 83 .can_queue = 1, 84 .this_id = -1, 93 .track_queue_depth = 1, 116 *pm8001_phy_init - initiate our adapter phys [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/crypto/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 13 tristate "SHA-224/SHA-256 digest algorithm for arm64" 17 tristate "SHA-384/SHA-512 digest algorithm for arm64" 21 tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)" 27 tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)" 33 tristate "SHA-384/SHA-512 digest algorithm (ARMv8 Crypto Extensions)" 57 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions" 121 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/ |
| D | samsung-slimsss.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/crypto/samsung-slimsss.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Kamil Konieczny <k.konieczny@partner.samsung.com> 15 -- Feeder (FeedCtrl) 16 -- Advanced Encryption Standard (AES) with ECB,CBC,CTR,XTS and (CBC/XTS)/CTS 17 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC 22 - const: samsung,exynos5433-slim-sss [all …]
|
| D | samsung-sss.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/crypto/samsung-sss.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Kamil Konieczny <k.konieczny@partner.samsung.com> 15 -- Feeder (FeedCtrl) 16 -- Advanced Encryption Standard (AES) 17 -- Data Encryption Standard (DES)/3DES 18 -- Public Key Accelerator (PKA) [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | nf_conntrack_proto_sctp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2004-2012 Patrick McHardy <kaber@trash.net> 31 closely. They're more complex. --RR 33 And so for me for SCTP :D -Kiran */ 65 #define SCTP_FLAG_HEARTBEAT_VTAG_FAILED 1 76 #define sHA SCTP_CONNTRACK_HEARTBEAT_ACKED macro 85 point. Please note the subtleties. -Kiran 87 NONE - Nothing so far. 88 COOKIE WAIT - We have seen an INIT chunk in the original direction, or also 90 COOKIE ECHOED - We have seen a COOKIE_ECHO chunk in the original direction. [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | ccp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 18 #include <crypto/sha.h> 26 * ccp_present - check if a CCP device is present 28 * Returns zero if a CCP device is present, -ENODEV otherwise. 33 #define CCP_VMASK ((unsigned int)((1 << CCP_VSIZE) - 1)) 38 * ccp_version - get the version of the CCP 45 * ccp_enqueue_cmd - queue an operation for processing by the CCP 54 * result in a return code of -EBUSY. 60 * will be -EINPROGRESS. Any other "err" value during callback is 64 * the return code is -EINPROGRESS or [all …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | ccp.h | 21 #include <crypto/sha.h> 29 * ccp_present - check if a CCP device is present 31 * Returns zero if a CCP device is present, -ENODEV otherwise. 36 #define CCP_VMASK ((unsigned int)((1 << CCP_VSIZE) - 1)) 41 * ccp_version - get the version of the CCP 48 * ccp_enqueue_cmd - queue an operation for processing by the CCP 57 * result in a return code of -EBUSY. 63 * will be -EINPROGRESS. Any other "err" value during callback is 67 * the return code is -EINPROGRESS or 68 * the return code is -EBUSY and CCP_CMD_MAY_BACKLOG flag is set [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/crypto/ |
| D | samsung-sss.txt | 4 -- Feeder (FeedCtrl) 5 -- Advanced Encryption Standard (AES) 6 -- Data Encryption Standard (DES)/3DES 7 -- Public Key Accelerator (PKA) 8 -- SHA-1/SHA-256/MD5/HMAC (SHA-1/SHA-256/MD5)/PRNG 9 -- PRNG: Pseudo Random Number Generator 14 -- ARCFOUR (ARC4) 15 -- True Random Number Generator (TRNG) 16 -- Secure Key Manager 20 - compatible : Should contain entries for this and backward compatible [all …]
|
| /kernel/linux/linux-4.19/net/netfilter/ |
| D | nf_conntrack_proto_sctp.c | 5 * Copyright (c) 2004-2012 Patrick McHardy <kaber@trash.net> 34 closely. They're more complex. --RR 36 And so for me for SCTP :D -Kiran */ 68 #define SCTP_FLAG_HEARTBEAT_VTAG_FAILED 1 79 #define sHA SCTP_CONNTRACK_HEARTBEAT_ACKED macro 88 point. Please note the subtleties. -Kiran 90 NONE - Nothing so far. 91 COOKIE WAIT - We have seen an INIT chunk in the original direction, or also 93 COOKIE ECHOED - We have seen a COOKIE_ECHO chunk in the original direction. 94 ESTABLISHED - We have seen a COOKIE_ACK in the reply direction. [all …]
|