You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: crypto/sha1: use of weak SHA-1 is not allowed in FIPS 140-only mode
goroutine 7 [running]:
panic()
runtime/panic.go:787
crypto/sha1.New(...)
crypto/sha1/sha1.go:115
github.com/ProtonMail/go-crypto/openpgp/packet.(*PublicKey).setFingerprintAndKeyId
github.com/ProtonMail/go-crypto@v1.1.3/openpgp/packet/public_key.go:306
github.com/ProtonMail/go-crypto/openpgp/packet.NewRSAPublicKey
github.com/ProtonMail/go-crypto@v1.1.3/openpgp/packet/public_key.go:91
github.com/ProtonMail/go-crypto/openpgp/packet.NewSignerPrivateKey
github.com/ProtonMail/go-crypto@v1.1.3/openpgp/packet/private_key.go:150
github.com/ProtonMail/go-crypto/openpgp.NewEntity
github.com/ProtonMail/go-crypto@v1.1.3/openpgp/key_generation.go:42
Seems to be caused by the fact the method is generating a v4 key and then upgrading to v6:
No, it's currently not possible. Probably the easiest thing to do is to (create a fork in order to) make v6 the default, and then downgrade to v4 when that's requested (if you still need that functionality as well).
trying to generate v6 keys fails in a fips only environment (
GODEBUG=fips140=only
on gotip or go 1.24)code:
stacktrace:
Seems to be caused by the fact the method is generating a v4 key and then upgrading to v6:
go-crypto/openpgp/key_generation.go
Lines 44 to 46 in 3de0301
Is there a way to generate a v6 key directly ?
The text was updated successfully, but these errors were encountered: