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.
@douzzer douzzer requested a review from wolfSSL-Bot March 10, 2026 05:24
@douzzer douzzer added the Not For This Release Not for release 5.9.0 label Mar 10, 2026
@douzzer
Copy link
Contributor Author

douzzer commented Mar 10, 2026

retest this please

1 similar comment
@douzzer
Copy link
Contributor Author

douzzer commented Mar 11, 2026

retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not For This Release Not for release 5.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants