-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use OpenSSL 3's KBKDF for SP800-108 if it is available #106779
Conversation
If OpenSSL 3 is not available, or KBKDF is not present, then the managed implementation will continue to be used. This does not impact The Microsoft.Bcl.Cryptography package.
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
src/native/libs/System.Security.Cryptography.Native/pal_evp_kdf.c
Outdated
Show resolved
Hide resolved
src/native/libs/System.Security.Cryptography.Native/pal_evp_kdf.c
Outdated
Show resolved
Hide resolved
src/native/libs/System.Security.Cryptography.Native/pal_evp_kdf.c
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Microsoft/Win32/SafeHandles/SafeEvpKdfHandle.Unix.cs
Show resolved
Hide resolved
src/native/libs/System.Security.Cryptography.Native/pal_evp_kdf.c
Outdated
Show resolved
Hide resolved
src/native/libs/System.Security.Cryptography.Native/pal_evp_kdf.h
Outdated
Show resolved
Hide resolved
/backport to release/9.0 |
Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/10530440871 |
@vcsjones backporting to release/9.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To record the empty patch as an empty commit, run "git am --allow-empty".
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Applying: Use OpenSSL 3's KBKDF for SP800-108 if it available.
Applying: Add missing string consts to compat
Applying: Fix name of unused parameters in fallback
Applying: Code review feedback
Patch is empty.
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@vcsjones an error occurred while backporting to release/9.0, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
If the pull request being back ported contains an empty commit, the backport command will fail during `git am` since it has not been instructed what to do with an empty commit. This changes the backport command to preserve the empty commit. See this pull request from `dotnet/runtime` for an example of the backport command failing in the presence of an empty commit: dotnet/runtime#106779
Note to future me: cryptograhic-docs-impact was removed because it's being incorporated in the 9.0 docs. |
If OpenSSL 3 is not available, or KBKDF is not present, then the managed implementation will continue to be used. This does not impact The Microsoft.Bcl.Cryptography package.