forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/herbert/crypto-2.6 Pull crypto updates from Herbert Xu: "Algorithms: - add private key generation to ecdh Drivers: - add generic gcm(aes) to aesni-intel - add SafeXcel EIP197 crypto engine driver - add ecb(aes), cfb(aes) and ecb(des3_ede) to cavium - add support for CNN55XX adapters in cavium - add ctr mode to chcr - add support for gcm(aes) to omap" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (140 commits) crypto: testmgr - Reenable sha1/aes in FIPS mode crypto: ccp - Release locks before returning crypto: cavium/nitrox - dma_mapping_error() returns bool crypto: doc - fix typo in docs Documentation/bindings: Document the SafeXel cryptographic engine driver crypto: caam - fix gfp allocation flags (part II) crypto: caam - fix gfp allocation flags (part I) crypto: drbg - Fixes panic in wait_for_completion call crypto: caam - make of_device_ids const. crypto: vmx - remove unnecessary check crypto: n2 - make of_device_ids const crypto: inside-secure - use the base_end pointer in ring rollback crypto: inside-secure - increase the batch size crypto: inside-secure - only dequeue when needed crypto: inside-secure - get the backlog before dequeueing the request crypto: inside-secure - stop requeueing failed requests crypto: inside-secure - use one queue per hw ring crypto: inside-secure - update the context and request later crypto: inside-secure - align the cipher and hash send functions crypto: inside-secure - optimize DSE bufferability control ...
- Loading branch information
Showing
127 changed files
with
12,841 additions
and
1,535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/crypto/inside-secure-safexcel.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Inside Secure SafeXcel cryptographic engine | ||
|
||
Required properties: | ||
- compatible: Should be "inside-secure,safexcel-eip197". | ||
- reg: Base physical address of the engine and length of memory mapped region. | ||
- interrupts: Interrupt numbers for the rings and engine. | ||
- interrupt-names: Should be "ring0", "ring1", "ring2", "ring3", "eip", "mem". | ||
|
||
Optional properties: | ||
- clocks: Reference to the crypto engine clock. | ||
- dma-mask: The address mask limitation. Defaults to 64. | ||
|
||
Example: | ||
|
||
crypto: crypto@800000 { | ||
compatible = "inside-secure,safexcel-eip197"; | ||
reg = <0x800000 0x200000>; | ||
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-names = "mem", "ring0", "ring1", "ring2", "ring3", | ||
"eip"; | ||
clocks = <&cpm_syscon0 1 26>; | ||
dma-mask = <0xff 0xffffffff>; | ||
status = "disabled"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3746,6 +3746,13 @@ S: Supported | |
F: drivers/infiniband/hw/cxgb4/ | ||
F: include/uapi/rdma/cxgb4-abi.h | ||
|
||
CXGB4 CRYPTO DRIVER (chcr) | ||
M: Harsh Jain <[email protected]> | ||
L: [email protected] | ||
W: http://www.chelsio.com | ||
S: Supported | ||
F: drivers/crypto/chelsio | ||
|
||
CXGB4VF ETHERNET DRIVER (CXGB4VF) | ||
M: Casey Leedom <[email protected]> | ||
L: [email protected] | ||
|
@@ -6647,6 +6654,12 @@ F: Documentation/input/multi-touch-protocol.rst | |
F: drivers/input/input-mt.c | ||
K: \b(ABS|SYN)_MT_ | ||
|
||
INSIDE SECURE CRYPTO DRIVER | ||
M: Antoine Tenart <[email protected]> | ||
F: drivers/crypto/inside-secure/ | ||
S: Maintained | ||
L: [email protected] | ||
|
||
INTEL ASoC BDW/HSW DRIVERS | ||
M: Jie Yang <[email protected]> | ||
L: [email protected] (moderated for non-subscribers) | ||
|
@@ -8306,6 +8319,11 @@ L: [email protected] | |
S: Maintained | ||
F: drivers/net/wireless/mediatek/mt7601u/ | ||
|
||
MEDIATEK RANDOM NUMBER GENERATOR SUPPORT | ||
M: Sean Wang <[email protected]> | ||
S: Maintained | ||
F: drivers/char/hw_random/mtk-rng.c | ||
|
||
MEGACHIPS STDPXXXX-GE-B850V3-FW LVDS/DP++ BRIDGES | ||
M: Peter Senna Tschudin <[email protected]> | ||
M: Martin Donnelly <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,6 @@ | |
#include <linux/crypto.h> | ||
#include <linux/module.h> | ||
|
||
#define ASM_EXPORT(sym, val) \ | ||
asm(".globl " #sym "; .set " #sym ", %0" :: "I"(val)); | ||
|
||
MODULE_DESCRIPTION("SHA1 secure hash using ARMv8 Crypto Extensions"); | ||
MODULE_AUTHOR("Ard Biesheuvel <[email protected]>"); | ||
MODULE_LICENSE("GPL v2"); | ||
|
@@ -32,6 +29,9 @@ struct sha1_ce_state { | |
asmlinkage void sha1_ce_transform(struct sha1_ce_state *sst, u8 const *src, | ||
int blocks); | ||
|
||
const u32 sha1_ce_offsetof_count = offsetof(struct sha1_ce_state, sst.count); | ||
const u32 sha1_ce_offsetof_finalize = offsetof(struct sha1_ce_state, finalize); | ||
|
||
static int sha1_ce_update(struct shash_desc *desc, const u8 *data, | ||
unsigned int len) | ||
{ | ||
|
@@ -52,11 +52,6 @@ static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, | |
struct sha1_ce_state *sctx = shash_desc_ctx(desc); | ||
bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE); | ||
|
||
ASM_EXPORT(sha1_ce_offsetof_count, | ||
offsetof(struct sha1_ce_state, sst.count)); | ||
ASM_EXPORT(sha1_ce_offsetof_finalize, | ||
offsetof(struct sha1_ce_state, finalize)); | ||
|
||
/* | ||
* Allow the asm code to perform the finalization if there is no | ||
* partial data and the input is a round multiple of the block size. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.