Skip to content

Commit 11c6e16

Browse files
pfsmorigoherbertx
authored andcommitted
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 <appro@openssl.org>). Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com> Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 5c56233 commit 11c6e16

File tree

2 files changed

+1867
-2
lines changed

2 files changed

+1867
-2
lines changed

drivers/crypto/vmx/aesp8-ppc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ void aes_p8_cbc_encrypt(const u8 *in, u8 *out, size_t len,
1919
void aes_p8_ctr32_encrypt_blocks(const u8 *in, u8 *out,
2020
size_t len, const struct aes_key *key,
2121
const u8 *iv);
22+
void aes_p8_xts_encrypt(const u8 *in, u8 *out, size_t len,
23+
const struct aes_key *key1, const struct aes_key *key2, u8 *iv);
24+
void aes_p8_xts_decrypt(const u8 *in, u8 *out, size_t len,
25+
const struct aes_key *key1, const struct aes_key *key2, u8 *iv);

0 commit comments

Comments
 (0)