microsoft / go

The Microsoft build of the Go toolset
BSD 3-Clause "New" or "Revised" License
270 stars 26 forks source link

Binaries built with opensslcrypto experiment can sometimes fallback to gocrypto, for historical algorithms #1347

Open xnox opened 5 days ago

xnox commented 5 days ago

Below uses MD5, but the same logic also applies to DES, 3DES, RC4. Leaving future algorithms out of scope for this bug report (i.e. Ed25519).

I would like to argue that fallback to gocrypto is undesired on any fips hosts, for historical algorithms that are being removed.

Design proposal:

Previously filed as a PR at https://github.com/microsoft/go/pull/1327

xnox commented 5 days ago

Pondering if this is exact opposite of https://github.com/golang-fips/openssl/commit/2cf9b4c832ed906bda86cf027884fb7f7dcd20cc