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

Plan integrating SHA3 functionality #967

Open
4 tasks
xnox opened this issue Jun 30, 2023 · 1 comment
Open
4 tasks

Plan integrating SHA3 functionality #967

xnox opened this issue Jun 30, 2023 · 1 comment

Comments

@xnox
Copy link

xnox commented Jun 30, 2023

Currently with go fips toolchain binaries appear to be universal - i.e. on linux, when fips is enabled, openssl fips is attempted, otherwise regular golang crypto is in use.

With newly contributed SHA3 implementation (microsoft/go-crypto-openssl#58 or golang-fips/openssl#88 ) it would be nice to preserve the same capability for SHA3 imports.

Specifically, ideally any given project that imports golang.org/x/crypto/sha3 and uses it either directly or via crypto APIs, utilises the regular golang crypto.

I am not sure how to design and implement this, hence opening this issue to explore possibilities.

at the very least I hope that hash registration can be highjacked and prevented overrides using x/crypto when in Fips mode.

Tasks

@xnox
Copy link
Author

xnox commented Jun 30, 2023

i wonder if sha3 package in golang-fips/openssl is sort of pointless. as really crypto/sha3 should be exposed by the toolchain and golang.org/x/crypto/sha3 should be patched to know how to use it.

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

No branches or pull requests

1 participant