Skip to content

20240424-sha-C-dynamic-fallback#7481

Merged
SparkiDev merged 10 commits intowolfSSL:masterfrom
douzzer:20240424-sha-C-dynamic-fallback
Apr 29, 2024
Merged

20240424-sha-C-dynamic-fallback#7481
SparkiDev merged 10 commits intowolfSSL:masterfrom
douzzer:20240424-sha-C-dynamic-fallback

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Apr 27, 2024

rename WC_AES_C_DYNAMIC_FALLBACK to WC_C_DYNAMIC_FALLBACK.

implement WC_C_DYNAMIC_FALLBACK for SHA-2 and SHA-3.

linuxkm/linuxkm_memory.c: fix circular dependency around wolfCrypt_Init(), allocate_wolfcrypt_linuxkm_fpu_states(), wc_linuxkm_fpu_state_assoc(), on FIPS.

implement full support for --enable-intelasm --enable-linuxkm. also add --enable-curve25519=noasm to allow use of the existing NO_CURVED25519_X64 code path by the linuxkm build (fe_x25519_asm.S is not kernel-compatible).

smallstack refactors of wolfcrypt/src/evp.c:wolfssl_evp_digest_pk_final() and wolfcrypt/test/test.c:openssl_test().

tested with wolfssl-multi-test.sh ... super-quick-check revised to use linuxkm-all-cryptonly-intelasm-fips-dev-dyn-hash-LKCAPI-insmod-mainline-fallback-fuzzing (aesni transitioned to intelasm), and retaining sanitizer-all-intelasm-c-fallback-fuzzer with fuzzed sanitized make check on all affected algs.

douzzer added 8 commits April 27, 2024 12:35
…it(), allocate_wolfcrypt_linuxkm_fpu_states(), wc_linuxkm_fpu_state_assoc(), on FIPS.
…dd --enable-curve25519=noasm to allow use of the existing NO_CURVED25519_X64 code path by the linuxkm build (fe_x25519_asm.S is not kernel-compatible).
…t/src/sha256.c;

remove stray definitions of XTRANSFORM*() in wolfcrypt/src/sha512.c;

restore global intel_flags in the !WC_NO_INTERNAL_FUNCTION_POINTERS paths of sha256.c and sha512.c;

disable test_wolfSSL_dtls_compare_stateless() in tests/api.c when DEBUG_VECTOR_REGISTER_ACCESS_FUZZING (it depends on a stable SHA512 hash of the in-memory struct WOLFSSL image).
…al() and wolfcrypt/test/test.c:openssl_test().
@douzzer
Copy link
Copy Markdown
Contributor Author

douzzer commented Apr 27, 2024

retest this please

Comment thread linuxkm/linuxkm_memory.c Outdated
Comment thread linuxkm/linuxkm_memory.c Outdated
Comment thread linuxkm/linuxkm_memory.c Outdated
Comment thread wolfcrypt/src/sha256.c Outdated
Comment thread wolfcrypt/src/sha256.c Outdated
Comment thread wolfcrypt/src/sha512.c Outdated
…hy, clarity, and efficiency in wolfcrypt/src/sha256.c and wolfcrypt/src/sha512.c.
@douzzer douzzer requested a review from SparkiDev April 29, 2024 19:05
@douzzer
Copy link
Copy Markdown
Contributor Author

douzzer commented Apr 29, 2024

retest this please

@douzzer douzzer removed their assignment Apr 29, 2024
@SparkiDev SparkiDev merged commit 068a3b5 into wolfSSL:master Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants