Skip to content

Conversation

@qmuntal
Copy link
Member

@qmuntal qmuntal commented Sep 8, 2023

While working on #1036 I realized that the goexperiment.OpenSSLCrypto || goexperiment.CNGCrypto check done before calling HKDF functions could be generalized to backend.Enabled && backend.SupportsHKDF().

This PR also fixes a potential bug: we should be checking if OpenSSL/CNG support HKDF before calling HKDF-related functions, else those functions will fail. We haven't seen this issue yet because HKDF is well-supported in recent Windows and OpenSSL versions.

@qmuntal qmuntal requested review from a user, chsienki, dagood and gdams September 8, 2023 14:36
@qmuntal qmuntal requested a review from a team as a code owner September 8, 2023 14:36
@qmuntal qmuntal merged commit 24b40fc into microsoft/main Sep 19, 2023
@qmuntal qmuntal deleted the dev/qmuntal/hkdf2 branch September 19, 2023 19:34
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.

4 participants