mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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]>). Signed-off-by: Leonidas S. Barbosa <[email protected]> Signed-off-by: Paulo Flabiano Smorigo <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
5c562338de
commit
11c6e16ee1
2 changed files with 1867 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue