-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20240522-sha256-avx1-IS_INTEL_SHA #7572
20240522-sha256-avx1-IS_INTEL_SHA #7572
Conversation
note, these are the implementations that use the SHA hardware instructions:
The Note, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not really a fix. Transform_Sha256_AVX1 is eliminated from ever being called.
(this comment refers to an earlier and indeed wrong version of the patch.)
… (linuxkm), fix oversight whereby Transform_Sha256_AVX1_Sha() was used on targets with false IS_INTEL_SHA(intel_flags). the former SHA256_AVX1 method id is now split into SHA256_AVX1_SHA and SHA256_AVX1_NOSHA, with corresponding fixes in Sha256_SetTransform(), inline_XTRANSFORM() and inline_XTRANSFORM_LEN().
b988f23
to
110f4ec
Compare
retest this please |
…INTEL_SHA 20240522-sha256-avx1-IS_INTEL_SHA
wolfcrypt/src/sha256.c
: inWC_NO_INTERNAL_FUNCTION_POINTERS
code path (linuxkm), fix oversight wherebyTransform_Sha256_AVX1_Sha()
was used on targets with falseIS_INTEL_SHA(intel_flags)
. the formerSHA256_AVX1
method id is now split intoSHA256_AVX1_SHA
andSHA256_AVX1_NOSHA
, with corresponding fixes inSha256_SetTransform()
,inline_XTRANSFORM()
andinline_XTRANSFORM_LEN()
.tested with
wolfssl-multi-test.sh ... linuxkm-all-cryptonly-intelasm-LKCAPI-insmod-mainline-fallback-fuzzing linuxkm-defaults-all-intelasm