Home
last modified time | relevance | path

Searched +full:sha +full:- +full:1 (Results 1 – 25 of 159) sorted by relevance

1234567

/Linux-v5.15/drivers/scsi/mvsas/
Dmv_init.c1 // 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 …]
Dmv_sas.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright 2009-2011 Marvell. <yuxiangl@marvell.com>
14 if (task->lldd_task) { in mvs_find_tag()
16 slot = task->lldd_task; in mvs_find_tag()
17 *tag = slot->slot_tag; in mvs_find_tag()
18 return 1; in mvs_find_tag()
25 void *bitmap = mvi->tags; in mvs_tag_clear()
36 void *bitmap = mvi->tags; in mvs_tag_set()
43 void *bitmap = mvi->tags; in mvs_tag_alloc()
45 index = find_first_zero_bit(bitmap, mvi->tags_num); in mvs_tag_alloc()
[all …]
/Linux-v5.15/drivers/crypto/ccp/
Dccp-crypto-sha.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * AMD Cryptographic Coprocessor (CCP) SHA crypto API support
25 #include "ccp-crypto.h"
37 if (rctx->hash_rem) { in ccp_sha_complete()
39 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_sha_complete()
41 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_sha_complete()
42 offset, rctx->hash_rem, 0); in ccp_sha_complete()
43 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete()
45 rctx->buf_count = 0; in ccp_sha_complete()
49 if (req->result && rctx->final) in ccp_sha_complete()
[all …]
Dccp-ops.c1 // 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 …]
Dccp-debugfs.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include "ccp-dev.h"
18 #define OBUFSPC (OBUFLEN - oboff)
45 struct ccp_device *ccp = filp->private_data; in ccp5_debugfs_info_read()
56 return -ENOMEM; in ccp5_debugfs_info_read()
58 oboff += OSCNPRINTF("Device name: %s\n", ccp->name); in ccp5_debugfs_info_read()
59 oboff += OSCNPRINTF(" RNG name: %s\n", ccp->rngname); in ccp5_debugfs_info_read()
60 oboff += OSCNPRINTF(" # Queues: %d\n", ccp->cmd_q_count); in ccp5_debugfs_info_read()
61 oboff += OSCNPRINTF(" # Cmds: %d\n", ccp->cmd_count); in ccp5_debugfs_info_read()
63 regval = ioread32(ccp->io_regs + CMD5_PSP_CCP_VERSION); in ccp5_debugfs_info_read()
[all …]
/Linux-v5.15/arch/arm/crypto/
DKconfig1 # 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 …]
/Linux-v5.15/drivers/scsi/pm8001/
Dpm8001_ctl.c2 * 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
49 * pm8001_ctl_mpi_interface_rev_show - MPI interface revision number
54 * A sysfs 'read-only' shost attribute.
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()
63 if (pm8001_ha->chip_id == chip_8001) { in pm8001_ctl_mpi_interface_rev_show()
65 pm8001_ha->main_cfg_tbl.pm8001_tbl.interface_rev); in pm8001_ctl_mpi_interface_rev_show()
[all …]
Dpm8001_init.c2 * 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 …]
/Linux-v5.15/arch/arm64/crypto/
DKconfig1 # 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"
/Linux-v5.15/include/crypto/
Dsha1.h1 /* SPDX-License-Identifier: GPL-2.0 */
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-v5.15/net/netfilter/
Dnf_conntrack_proto_sctp.c1 // 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 …]
/Linux-v5.15/Documentation/devicetree/bindings/crypto/
Dsamsung-slimsss.yaml1 # 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>
14 -- Feeder (FeedCtrl)
15 -- Advanced Encryption Standard (AES) with ECB,CBC,CTR,XTS and (CBC/XTS)/CTS
16 -- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC
21 - const: samsung,exynos5433-slim-sss
24 maxItems: 1
[all …]
Dsamsung-sss.yaml1 # 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>
14 -- Feeder (FeedCtrl)
15 -- Advanced Encryption Standard (AES)
16 -- Data Encryption Standard (DES)/3DES
17 -- Public Key Accelerator (PKA)
18 -- SHA-1/SHA-256/MD5/HMAC (SHA-1/SHA-256/MD5)/PRNG
[all …]
/Linux-v5.15/include/linux/
Dccp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
27 * ccp_present - check if a CCP device is present
29 * Returns zero if a CCP device is present, -ENODEV otherwise.
34 #define CCP_VMASK ((unsigned int)((1 << CCP_VSIZE) - 1))
39 * ccp_version - get the version of the CCP
46 * ccp_enqueue_cmd - queue an operation for processing by the CCP
55 * result in a return code of -EBUSY.
61 * will be -EINPROGRESS. Any other "err" value during callback is
65 * the return code is -EINPROGRESS or
66 * the return code is -EBUSY and CCP_CMD_MAY_BACKLOG flag is set
[all …]
/Linux-v5.15/Documentation/admin-guide/
Dmodule-signing.rst2 ------------------------------
6 .. - Overview.
7 .. - Configuring module signing.
8 .. - Generating signing keys.
9 .. - Public keys in the kernel.
10 .. - Manually signing modules.
11 .. - Signed modules and stripping.
12 .. - Loading signed modules.
13 .. - Non-valid signatures and unsigned modules.
14 .. - Administering/protecting the private key.
[all …]
/Linux-v5.15/arch/s390/purgatory/
Dhead.S1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <asm/asm-offsets.h>
24 * sha digest. So if the crash kernel got corrupted the old kernel can try
25 * to trigger a stand-alone dumper. And once to actually load the crash kernel.
34 #define bufsz purgatory_end-stack
66 lg %r4,kernel_entry-\base(%r13)
67 lg %r5,load_psw_mask-\base(%r13)
82 lhi %r1,1
93 larl %r15,purgatory_end-STACK_FRAME_OVERHEAD
97 * checksum verification only (%r2 = 0 -> verification only).
[all …]
/Linux-v5.15/crypto/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
140 bool "Disable run-time self tests"
143 Disable run-time self tests that normally take place at
147 bool "Enable extra run-time crypto self tests"
150 Enable extra run-time self tests of registered crypto algorithms,
216 comment "Public-key cryptography"
228 tristate "Diffie-Hellman algorithm"
232 Generic implementation of the Diffie-Hellman algorithm.
256 tristate "EC-RDSA (GOST 34.10) algorithm"
263 Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
[all …]
/Linux-v5.15/net/bridge/
Dbr_arp_nd_proxy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 list_for_each_entry(p, &br->port_list, list) { in br_recalculate_neigh_suppress_enabled()
33 if (p->flags & BR_NEIGH_SUPPRESS) { in br_recalculate_neigh_suppress_enabled()
55 dev->name, &dest_ip, dest_hw, &src_ip, src_hw); in br_arp_send()
84 skb->ip_summed = CHECKSUM_UNNECESSARY; in br_arp_send()
85 skb->pkt_type = PACKET_HOST; in br_arp_send()
94 __be32 ip = *(__be32 *)priv->data; in br_chk_addr_ip()
104 return 1; in br_chk_addr_ip()
128 struct net_device *dev = br->dev; in br_do_proxy_suppress_arp()
132 u8 *arpptr, *sha; in br_do_proxy_suppress_arp() local
[all …]
/Linux-v5.15/arch/sparc/crypto/
Dsha512_glue.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com>
31 sctx->state[0] = SHA512_H0; in sha512_sparc64_init()
32 sctx->state[1] = SHA512_H1; in sha512_sparc64_init()
33 sctx->state[2] = SHA512_H2; in sha512_sparc64_init()
34 sctx->state[3] = SHA512_H3; in sha512_sparc64_init()
35 sctx->state[4] = SHA512_H4; in sha512_sparc64_init()
36 sctx->state[5] = SHA512_H5; in sha512_sparc64_init()
37 sctx->state[6] = SHA512_H6; in sha512_sparc64_init()
38 sctx->state[7] = SHA512_H7; in sha512_sparc64_init()
[all …]
Dsha256_glue.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com>
32 sctx->state[0] = SHA224_H0; in sha224_sparc64_init()
33 sctx->state[1] = SHA224_H1; in sha224_sparc64_init()
34 sctx->state[2] = SHA224_H2; in sha224_sparc64_init()
35 sctx->state[3] = SHA224_H3; in sha224_sparc64_init()
36 sctx->state[4] = SHA224_H4; in sha224_sparc64_init()
37 sctx->state[5] = SHA224_H5; in sha224_sparc64_init()
38 sctx->state[6] = SHA224_H6; in sha224_sparc64_init()
39 sctx->state[7] = SHA224_H7; in sha224_sparc64_init()
[all …]
/Linux-v5.15/drivers/scsi/hisi_sas/
Dhisi_sas_main.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 ((!dev) || (dev->dev_type == SAS_PHY_UNUSED))
28 switch (fis->command) { in hisi_sas_get_ata_protocol()
81 switch (fis->features) { in hisi_sas_get_ata_protocol()
107 struct task_status_struct *ts = &task->task_status; in hisi_sas_sata_done()
108 struct ata_task_resp *resp = (struct ata_task_resp *)ts->buf; in hisi_sas_sata_done()
111 u8 *iu = &status_buf->iu[0]; in hisi_sas_sata_done()
114 resp->frame_len = sizeof(struct dev_to_host_fis); in hisi_sas_sata_done()
115 memcpy(&resp->ending_fis[0], d2h, sizeof(struct dev_to_host_fis)); in hisi_sas_sata_done()
117 ts->buf_valid_size = sizeof(*resp); in hisi_sas_sata_done()
[all …]
/Linux-v5.15/net/ipv4/
Darp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * high-level addresses) into a low-level hardware address (like an Ethernet
27 * re-arranged proxy handling.
168 [NEIGH_VAR_RETRANS_TIME] = 1 * HZ,
174 [NEIGH_VAR_ANYCAST_DELAY] = 1 * HZ,
176 [NEIGH_VAR_LOCKTIME] = 1 * HZ,
188 switch (dev->type) { in arp_mc_map()
195 ip_ib_mc_map(addr, dev->broadcast, haddr); in arp_mc_map()
198 ip_ipgre_mc_map(addr, dev->broadcast, haddr); in arp_mc_map()
202 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_mc_map()
[all …]
/Linux-v5.15/arch/mips/cavium-octeon/crypto/
Docteon-sha256.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * SHA-224 and SHA-256 Secure Hash Algorithm.
11 * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com>
26 #include "octeon-crypto.h"
29 * We pass everything as 64-bit. OCTEON can handle misaligned data.
34 u64 *hash = (u64 *)sctx->state; in octeon_sha256_store_hash()
37 write_octeon_64bit_hash_dword(hash[1], 1); in octeon_sha256_store_hash()
44 u64 *hash = (u64 *)sctx->state; in octeon_sha256_read_hash()
47 hash[1] = read_octeon_64bit_hash_dword(1); in octeon_sha256_read_hash()
57 write_octeon_64bit_block_dword(block[1], 1); in octeon_sha256_transform()
[all …]
Docteon-sha512.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * SHA-512 and SHA-384 Secure Hash Algorithm.
11 * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com>
25 #include "octeon-crypto.h"
28 * We pass everything as 64-bit. OCTEON can handle misaligned data.
33 write_octeon_64bit_hash_sha512(sctx->state[0], 0); in octeon_sha512_store_hash()
34 write_octeon_64bit_hash_sha512(sctx->state[1], 1); in octeon_sha512_store_hash()
35 write_octeon_64bit_hash_sha512(sctx->state[2], 2); in octeon_sha512_store_hash()
36 write_octeon_64bit_hash_sha512(sctx->state[3], 3); in octeon_sha512_store_hash()
37 write_octeon_64bit_hash_sha512(sctx->state[4], 4); in octeon_sha512_store_hash()
[all …]
/Linux-v5.15/arch/x86/crypto/
Dsha1_ni_asm.S2 * Intel SHA Extensions optimized implementation of a SHA-1 update function
58 #define DIGEST_PTR %rdi /* 1st arg */
76 * Intel SHA Extensions optimized implementation of a SHA-1 update function
86 * The non-indented lines are instructions related to the message schedule.
107 pinsrd $3, 1*16(DIGEST_PTR), E0
117 movdqa ABCD, (1*16)(%rsp)
119 /* Rounds 0-3 */
126 /* Rounds 4-7 */
127 movdqu 1*16(DATA_PTR), MSG1
134 /* Rounds 8-11 */
[all …]

1234567