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: "API: - Add speed testing on 1420-byte blocks for networking Algorithms: - Improve performance of chacha on ARM for network packets - Improve performance of aegis128 on ARM for network packets Drivers: - Add support for Keem Bay OCS AES/SM4 - Add support for QAT 4xxx devices - Enable crypto-engine retry mechanism in caam - Enable support for crypto engine on sdm845 in qce - Add HiSilicon PRNG driver support" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (161 commits) crypto: qat - add capability detection logic in qat_4xxx crypto: qat - add AES-XTS support for QAT GEN4 devices crypto: qat - add AES-CTR support for QAT GEN4 devices crypto: atmel-i2c - select CONFIG_BITREVERSE crypto: hisilicon/trng - replace atomic_add_return() crypto: keembay - Add support for Keem Bay OCS AES/SM4 dt-bindings: Add Keem Bay OCS AES bindings crypto: aegis128 - avoid spurious references crypto_aegis128_update_simd crypto: seed - remove trailing semicolon in macro definition crypto: x86/poly1305 - Use TEST %reg,%reg instead of CMP $0,%reg crypto: x86/sha512 - Use TEST %reg,%reg instead of CMP $0,%reg crypto: aesni - Use TEST %reg,%reg instead of CMP $0,%reg crypto: cpt - Fix sparse warnings in cptpf hwrng: ks-sa - Add dependency on IOMEM and OF crypto: lib/blake2s - Move selftest prototype into header file crypto: arm/aes-ce - work around Cortex-A57/A72 silion errata crypto: ecdh - avoid unaligned accesses in ecdh_set_secret() crypto: ccree - rework cache parameters handling crypto: cavium - Use dma_set_mask_and_coherent to simplify code crypto: marvell/octeontx - Use dma_set_mask_and_coherent to simplify code ...
- Loading branch information
Showing
264 changed files
with
8,428 additions
and
1,993 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
Documentation/devicetree/bindings/crypto/intel,keembay-ocs-aes.yaml
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,45 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/crypto/intel,keembay-ocs-aes.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Intel Keem Bay OCS AES Device Tree Bindings | ||
|
||
maintainers: | ||
- Daniele Alessandrelli <[email protected]> | ||
|
||
description: | ||
The Intel Keem Bay Offload and Crypto Subsystem (OCS) AES engine provides | ||
hardware-accelerated AES/SM4 encryption/decryption. | ||
|
||
properties: | ||
compatible: | ||
const: intel,keembay-ocs-aes | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- clocks | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
crypto@30008000 { | ||
compatible = "intel,keembay-ocs-aes"; | ||
reg = <0x30008000 0x1000>; | ||
interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&scmi_clk 95>; | ||
}; |
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 |
---|---|---|
|
@@ -8016,7 +8016,7 @@ F: drivers/staging/hikey9xx/ | |
HISILICON TRUE RANDOM NUMBER GENERATOR V2 SUPPORT | ||
M: Zaibo Xu <[email protected]> | ||
S: Maintained | ||
F: drivers/char/hw_random/hisi-trng-v2.c | ||
F: drivers/crypto/hisilicon/trng/trng.c | ||
|
||
HISILICON V3XX SPI NOR FLASH Controller Driver | ||
M: John Garry <[email protected]> | ||
|
@@ -8975,13 +8975,23 @@ M: Deepak Saxena <[email protected]> | |
S: Maintained | ||
F: drivers/char/hw_random/ixp4xx-rng.c | ||
|
||
INTEL KEEMBAY DRM DRIVER | ||
INTEL KEEM BAY DRM DRIVER | ||
M: Anitha Chrisanthus <[email protected]> | ||
M: Edmund Dea <[email protected]> | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/display/intel,kmb_display.yaml | ||
F: drivers/gpu/drm/kmb/ | ||
|
||
INTEL KEEM BAY OCS AES/SM4 CRYPTO DRIVER | ||
M: Daniele Alessandrelli <[email protected]> | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/crypto/intel,keembay-ocs-aes.yaml | ||
F: drivers/crypto/keembay/Kconfig | ||
F: drivers/crypto/keembay/Makefile | ||
F: drivers/crypto/keembay/keembay-ocs-aes-core.c | ||
F: drivers/crypto/keembay/ocs-aes.c | ||
F: drivers/crypto/keembay/ocs-aes.h | ||
|
||
INTEL MANAGEMENT ENGINE (mei) | ||
M: Tomas Winkler <[email protected]> | ||
L: [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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ MODULE_AUTHOR("Ard Biesheuvel <[email protected]>"); | |
MODULE_LICENSE("GPL v2"); | ||
|
||
MODULE_ALIAS_CRYPTO("ecb(aes)"); | ||
MODULE_ALIAS_CRYPTO("cbc(aes)"); | ||
MODULE_ALIAS_CRYPTO("cbc(aes)-all"); | ||
MODULE_ALIAS_CRYPTO("ctr(aes)"); | ||
MODULE_ALIAS_CRYPTO("xts(aes)"); | ||
|
||
|
@@ -191,7 +191,8 @@ static int cbc_init(struct crypto_skcipher *tfm) | |
struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); | ||
unsigned int reqsize; | ||
|
||
ctx->enc_tfm = crypto_alloc_skcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC); | ||
ctx->enc_tfm = crypto_alloc_skcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC | | ||
CRYPTO_ALG_NEED_FALLBACK); | ||
if (IS_ERR(ctx->enc_tfm)) | ||
return PTR_ERR(ctx->enc_tfm); | ||
|
||
|
@@ -441,7 +442,8 @@ static struct skcipher_alg aes_algs[] = { { | |
.base.cra_blocksize = AES_BLOCK_SIZE, | ||
.base.cra_ctxsize = sizeof(struct aesbs_cbc_ctx), | ||
.base.cra_module = THIS_MODULE, | ||
.base.cra_flags = CRYPTO_ALG_INTERNAL, | ||
.base.cra_flags = CRYPTO_ALG_INTERNAL | | ||
CRYPTO_ALG_NEED_FALLBACK, | ||
|
||
.min_keysize = AES_MIN_KEY_SIZE, | ||
.max_keysize = AES_MAX_KEY_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
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
Oops, something went wrong.