forked from wolfSSL/wolfssl
Compare commits
3 Commits
devin/1739
...
WCv6.0.0-R
Author | SHA1 | Date | |
---|---|---|---|
184c8128ac | |||
81beda3f40 | |||
9a411ca710 |
1
README
1
README
@ -1,4 +1,5 @@
|
||||
*** Description ***
|
||||
*** FIPS 140-3 module v6.0.0 SRTP-KDF Release Candidate 3 ***
|
||||
|
||||
The wolfSSL embedded SSL library (formerly CyaSSL) is a lightweight SSL/TLS
|
||||
library written in ANSI C and targeted for embedded, RTOS, and
|
||||
|
@ -1,4 +1,5 @@
|
||||
# wolfSSL Embedded SSL/TLS Library
|
||||
# FIPS 140-3 module v6.0.0 SRTP-KDF Release Candidate 3
|
||||
|
||||
The [wolfSSL embedded SSL library](https://www.wolfssl.com/products/wolfssl/)
|
||||
(formerly CyaSSL) is a lightweight SSL/TLS library written in ANSI C and
|
||||
|
@ -11832,7 +11832,13 @@ static WARN_UNUSED_RESULT int _AesEcbEncrypt(
|
||||
#elif defined(__aarch64__) && defined(WOLFSSL_ARMASM) && \
|
||||
!defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
||||
if (aes->use_aes_hw_crypto) {
|
||||
AES_encrypt_AARCH64(in, out, (byte*)aes->key, (int)aes->rounds);
|
||||
word32 i;
|
||||
|
||||
for (i = 0; i < sz; i += WC_AES_BLOCK_SIZE) {
|
||||
AES_encrypt_AARCH64(in, out, (byte*)aes->key, (int)aes->rounds);
|
||||
in += WC_AES_BLOCK_SIZE;
|
||||
out += WC_AES_BLOCK_SIZE;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
@ -11890,7 +11896,13 @@ static WARN_UNUSED_RESULT int _AesEcbDecrypt(
|
||||
#elif defined(__aarch64__) && defined(WOLFSSL_ARMASM) && \
|
||||
!defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
||||
if (aes->use_aes_hw_crypto) {
|
||||
AES_decrypt_AARCH64(in, out, (byte*)aes->key, (int)aes->rounds);
|
||||
word32 i;
|
||||
|
||||
for (i = 0; i < sz; i += WC_AES_BLOCK_SIZE) {
|
||||
AES_decrypt_AARCH64(in, out, (byte*)aes->key, (int)aes->rounds);
|
||||
in += WC_AES_BLOCK_SIZE;
|
||||
out += WC_AES_BLOCK_SIZE;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
@ -12753,7 +12765,12 @@ int wc_AesXtsSetKeyNoInit(XtsAes* aes, const byte* key, word32 len, int dir)
|
||||
}
|
||||
|
||||
if ((len != (AES_128_KEY_SIZE*2)) &&
|
||||
#ifndef HAVE_FIPS
|
||||
/* XTS-384 not allowed by FIPS and can not be treated like
|
||||
* RSA-4096 bit keys back in the day, can not vendor affirm
|
||||
* the use of 2 concatenated 192-bit keys (XTS-384) */
|
||||
(len != (AES_192_KEY_SIZE*2)) &&
|
||||
#endif
|
||||
(len != (AES_256_KEY_SIZE*2)))
|
||||
{
|
||||
WOLFSSL_MSG("Unsupported key size");
|
||||
|
Reference in New Issue
Block a user