Skip to content

Commit

Permalink
crypto: vmx - Adding asm subroutines for XTS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paulo Flabiano Smorigo authored and Herbert Xu committed Jul 19, 2016
1 parent 5c56233 commit 11c6e16
Show file tree
Hide file tree
Showing 2 changed files with 1,867 additions and 2 deletions.
4 changes: 4 additions & 0 deletions drivers/crypto/vmx/aesp8-ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Loading

0 comments on commit 11c6e16

Please sign in to comment.