Skip to content

Commit dc47d38

Browse files
committed
Merge git://github.com/herbertx/crypto
* git://github.com/herbertx/crypto: (48 commits) crypto: user - Depend on NET instead of selecting it crypto: user - Add dependency on NET crypto: talitos - handle descriptor not found in error path crypto: user - Initialise match in crypto_alg_match crypto: testmgr - add twofish tests crypto: testmgr - add blowfish test-vectors crypto: Make hifn_795x build depend on !ARCH_DMA_ADDR_T_64BIT crypto: twofish-x86_64-3way - fix ctr blocksize to 1 crypto: blowfish-x86_64 - fix ctr blocksize to 1 crypto: whirlpool - count rounds from 0 crypto: Add userspace report for compress type algorithms crypto: Add userspace report for cipher type algorithms crypto: Add userspace report for rng type algorithms crypto: Add userspace report for pcompress type algorithms crypto: Add userspace report for nivaead type algorithms crypto: Add userspace report for aead type algorithms crypto: Add userspace report for givcipher type algorithms crypto: Add userspace report for ablkcipher type algorithms crypto: Add userspace report for blkcipher type algorithms crypto: Add userspace report for ahash type algorithms ...
2 parents f6d90b4 + 5db017a commit dc47d38

45 files changed

Lines changed: 4049 additions & 208 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Picochip picoXcell SPAcc (Security Protocol Accelerator) bindings
2+
3+
Picochip picoXcell devices contain crypto offload engines that may be used for
4+
IPSEC and femtocell layer 2 ciphering.
5+
6+
Required properties:
7+
- compatible : "picochip,spacc-ipsec" for the IPSEC offload engine
8+
"picochip,spacc-l2" for the femtocell layer 2 ciphering engine.
9+
- reg : Offset and length of the register set for this device
10+
- interrupt-parent : The interrupt controller that controls the SPAcc
11+
interrupt.
12+
- interrupts : The interrupt line from the SPAcc.
13+
- ref-clock : The input clock that drives the SPAcc.
14+
15+
Example SPAcc node:
16+
17+
spacc@10000 {
18+
compatible = "picochip,spacc-ipsec";
19+
reg = <0x100000 0x10000>;
20+
interrupt-parent = <&vic0>;
21+
interrupts = <24>;
22+
ref-clock = <&ipsec_clk>, "ref";
23+
};

‎arch/x86/crypto/Makefile‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,33 @@ obj-$(CONFIG_CRYPTO_TWOFISH_586) += twofish-i586.o
77
obj-$(CONFIG_CRYPTO_SALSA20_586) += salsa20-i586.o
88

99
obj-$(CONFIG_CRYPTO_AES_X86_64) += aes-x86_64.o
10+
obj-$(CONFIG_CRYPTO_BLOWFISH_X86_64) += blowfish-x86_64.o
1011
obj-$(CONFIG_CRYPTO_TWOFISH_X86_64) += twofish-x86_64.o
12+
obj-$(CONFIG_CRYPTO_TWOFISH_X86_64_3WAY) += twofish-x86_64-3way.o
1113
obj-$(CONFIG_CRYPTO_SALSA20_X86_64) += salsa20-x86_64.o
1214
obj-$(CONFIG_CRYPTO_AES_NI_INTEL) += aesni-intel.o
1315
obj-$(CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL) += ghash-clmulni-intel.o
1416

1517
obj-$(CONFIG_CRYPTO_CRC32C_INTEL) += crc32c-intel.o
18+
obj-$(CONFIG_CRYPTO_SHA1_SSSE3) += sha1-ssse3.o
1619

1720
aes-i586-y := aes-i586-asm_32.o aes_glue.o
1821
twofish-i586-y := twofish-i586-asm_32.o twofish_glue.o
1922
salsa20-i586-y := salsa20-i586-asm_32.o salsa20_glue.o
2023

2124
aes-x86_64-y := aes-x86_64-asm_64.o aes_glue.o
25+
blowfish-x86_64-y := blowfish-x86_64-asm_64.o blowfish_glue.o
2226
twofish-x86_64-y := twofish-x86_64-asm_64.o twofish_glue.o
27+
twofish-x86_64-3way-y := twofish-x86_64-asm_64-3way.o twofish_glue_3way.o
2328
salsa20-x86_64-y := salsa20-x86_64-asm_64.o salsa20_glue.o
2429

2530
aesni-intel-y := aesni-intel_asm.o aesni-intel_glue.o fpu.o
2631

2732
ghash-clmulni-intel-y := ghash-clmulni-intel_asm.o ghash-clmulni-intel_glue.o
33+
34+
# enable AVX support only when $(AS) can actually assemble the instructions
35+
ifeq ($(call as-instr,vpxor %xmm0$(comma)%xmm1$(comma)%xmm2,yes,no),yes)
36+
AFLAGS_sha1_ssse3_asm.o += -DSHA1_ENABLE_AVX_SUPPORT
37+
CFLAGS_sha1_ssse3_glue.o += -DSHA1_ENABLE_AVX_SUPPORT
38+
endif
39+
sha1-ssse3-y := sha1_ssse3_asm.o sha1_ssse3_glue.o

‎arch/x86/crypto/aes_glue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include <crypto/aes.h>
7+
#include <asm/aes.h>
78

89
asmlinkage void aes_enc_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
910
asmlinkage void aes_dec_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);

0 commit comments

Comments
 (0)