Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes for gating and ARM32 alignment defects:
wolfcrypt/src/port/arm/armv8-aes.c
: in theWOLFSSL_ARMASM_NO_HW_CRYPTO
version ofwc_AesSetKey()
, copy the supplieduserKey
to a properly aligned buffer if necessary before callingAES_set_encrypt_key()
;src/dtls13.c
: inDtls13GetRnMask()
, ifdefined(WOLFSSL_LINUXKM)
, return retval ofwc_AesEncryptDirect()
;wolfcrypt/src/misc.c
: addreadUnalignedWord32()
,writeUnalignedWord32()
,readUnalignedWords32()
, andwriteUnalignedWords32()
;wolfcrypt/src/siphash.c
: usereadUnalignedWord64()
,readUnalignedWord32()
, andwriteUnalignedWord64()
, to avoid unaligned access faults, and fix cast in byte-reversing version ofGET_U32()
.tested with
wolfssl-multi-test.sh ... linuxkm-all-fips-140-3 quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest-Os quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest-Os-smallstack quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest-sanitizer-Os-smallstack quantum-safe-wolfssl-all-intelasm-sp-asm-valgrind-Os super-quick-check