Skip to content

20260306-wc_Hash-refactor#9937

Open
douzzer wants to merge 2 commits intowolfSSL:masterfrom
douzzer:20260306-wc_Hash-refactor
Open

20260306-wc_Hash-refactor#9937
douzzer wants to merge 2 commits intowolfSSL:masterfrom
douzzer:20260306-wc_Hash-refactor

Conversation

@douzzer
Copy link
Contributor

@douzzer douzzer commented Mar 10, 2026

refactor wc_Hash* so that known wc_HashType values are unconditionally defined in enum wc_HashType, and always either succeed if used properly, or return HASH_TYPE_E if gated out or used improperly; add detailed error code tracing in wolfcrypt/src/hash.c.

wolfssl/wolfcrypt/error-crypt.h: add do-nothing WC_ERR_TRACE() fallthrough definition to make WC_ERR_TRACE() safe to use ungated in code.

tested with wolfssl-multi-test.sh ... super-quick-check

douzzer added 2 commits March 10, 2026 00:22
…rough definition to make WC_ERR_TRACE() safe to use ungated in code.
…y defined in enum wc_HashType, and always either succeed if used properly, or return HASH_TYPE_E if gated out or used improperly; add detailed error code tracing in wolfcrypt/src/hash.c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants