crypto: vmx - Adding asm subroutines for XTS
PATCH v2 1/2 crypto: vmx - Adding asm subroutines for XTS
This patch add XTS subroutines using VMX-crypto driver.
It gives a boost of 20 times using XTS.
These code has been adopted from OpenSSL project in collaboration with the original author (Andy Polyakov <[email protected]>).
--- drivers/crypto/vmx/aesp8-ppc.h | 4 + drivers/crypto/vmx/aesp8-ppc.pl | 1865 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 1867 insertions(+), 2 deletions(-)
drivers/crypto/vmx/aesp8-ppc.h +4 -0
@@ -19,3 +19,7 @@ void aes_p8_cbc_encrypt(const u8 *in, u8 *out, size_t len,void aes_p8_ctr32_encrypt_blocks (const u8 *in,u8 *out,size_t len,const struct aes_key *key,const u8 *iv); +void aes_p8_xts_encrypt (const u8 *in,u8 *out,size_t len, +const struct aes_key *key1,const struct aes_key *key2,u8 *iv); +void aes_p8_xts_decrypt (const u8 *in,u8 *out,size_t len, +const struct aes_key *key1,const struct aes_key *key2,u8 *iv);
drivers/crypto/vmx/aesp8-ppc.pl +1863 -2
1,886 lines not on this page · raw message
Signature · 6 lines
2.5.5 _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
PATCH v2 2/2 crypto: vmx - Adding support for XTS
From: "Leonidas S. Barbosa" <[email protected]>
This patch add XTS support using VMX-crypto driver.
--- drivers/crypto/vmx/Makefile | 2 +- drivers/crypto/vmx/aes_xts.c | 190 +++++++++++++++++++++++++++++++++++++++++++ drivers/crypto/vmx/vmx.c | 2 + 3 files changed, 193 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/vmx/aes_xts.c
drivers/crypto/vmx/Makefile +1 -1
@@ -1,5 +1,5 @@ obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o -vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o ghash.o +vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) TARGET := linux-ppc64le
drivers/crypto/vmx/aes_xts.c new file +190 -0
190 lines not on this page · raw message
drivers/crypto/vmx/vmx.c +2 -0
@@ -31,10 +31,12 @@ extern struct shash_alg p8_ghash_alg;extern struct crypto_alg p8_aes_alg;extern struct crypto_alg p8_aes_cbc_alg;extern struct crypto_alg p8_aes_ctr_alg; +extern struct crypto_alg p8_aes_xts_alg;static struct crypto_alg *algs[] = { &p8_aes_alg, &p8_aes_cbc_alg, &p8_aes_ctr_alg, + &p8_aes_xts_alg,NULL , };
Signature · 1 line
2.5.5
Herbert Xu
maintainerQuoted 9 lines · Paulo Flabiano Smorigo
This patch add XTS subroutines using VMX-crypto driver.
It gives a boost of 20 times using XTS.
These code has been adopted from OpenSSL project in collaboration with the original author (Andy Polyakov <[email protected]>).
Signed-off-by Leonidas S. Barbosa <[email protected]>Signed-off-by Paulo Flabiano Smorigo <[email protected]>
Both patches applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt