Skip to content
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

Switch openssl backend to golang-fips/openssl #943

Merged
merged 7 commits into from
Jul 26, 2023

Conversation

qmuntal
Copy link
Contributor

@qmuntal qmuntal commented Jun 7, 2023

github.com/golang-fips/openssl is almost API-compatible with github.com/microsoft/go-crypto-openssl, so there are only a handful changes:

  • openssl.DecryptRSAOAEPWithMGF1Hash and openssl.EncryptRSAOAEPWithMGF1Hash are not defined, but openssl.DecryptRSAOAEP and openssl.EncryptRSAOAEP supports the purpose of the former by adding an additional parameter.
  • openssl.Init no longer supports OpenSSL version auto-selection, as it has too fork-specific. We have to implement the algorithm in our side instead.
  • Remove the !android build tag.

@qmuntal qmuntal marked this pull request as ready for review June 8, 2023 09:06
patches/0003-Add-OpenSSL-crypto-backend.patch Outdated Show resolved Hide resolved
patches/0003-Add-OpenSSL-crypto-backend.patch Outdated Show resolved Hide resolved
eng/doc/fips/README.md Outdated Show resolved Hide resolved
eng/doc/fips/README.md Outdated Show resolved Hide resolved
eng/doc/fips/README.md Outdated Show resolved Hide resolved
@xnox
Copy link

xnox commented Jul 4, 2023

Is this going to be merged? It looks like it needs a rebase first. I also would want to update this to a newer snapshot of golang-fips/openssl to gain SHA3.

@qmuntal
Copy link
Contributor Author

qmuntal commented Jul 4, 2023

Is this going to be merged? It looks like it needs a rebase first. I also would want to update this to a newer snapshot of golang-fips/openssl to gain SHA3.

I'm waiting for this to happen: golang-fips/openssl#83. I've stopped rebasing this PR till then, else I would have to rebase and fix conflicts constantly.

@qmuntal
Copy link
Contributor Author

qmuntal commented Jul 13, 2023

Waiting for golang-fips/openssl#92

@qmuntal qmuntal merged commit aa2d051 into microsoft/main Jul 26, 2023
19 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/opensslfips branch July 26, 2023 13:02
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