Skip to content

Commit a7950a3

Browse files
Merge pull request #6846 from SparkiDev/aes_xts_arm_hw_crypto
Aarch64 and ARM32 AES XTS with crypto instructions
2 parents a24d669 + 862a98a commit a7950a3

3 files changed

Lines changed: 1349 additions & 0 deletions

File tree

wolfcrypt/src/aes.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11041,6 +11041,7 @@ void AES_XTS_decrypt_avx1(const unsigned char *in, unsigned char *out,
1104111041

1104211042
#endif /* WOLFSSL_AESNI */
1104311043

11044+
#if !defined(WOLFSSL_ARMASM) || defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
1104411045
#ifdef HAVE_AES_ECB
1104511046
/* helper function for encrypting / decrypting full buffer at once */
1104611047
static WARN_UNUSED_RESULT int _AesXtsHelper(
@@ -11438,6 +11439,8 @@ int wc_AesXtsDecrypt(XtsAes* xaes, byte* out, const byte* in, word32 sz,
1143811439
return AesXtsDecrypt_sw(xaes, out, in, sz, i);
1143911440
}
1144011441
}
11442+
#endif /* !WOLFSSL_ARMASM || WOLFSSL_ARMASM_NO_HW_CRYPTO */
11443+
1144111444
#endif /* WOLFSSL_AES_XTS */
1144211445

1144311446
#ifdef WOLFSSL_AES_SIV

0 commit comments

Comments
 (0)