Skip to content

Commit b8d8dae

Browse files
FiloSottilegopherbot
authored andcommitted
curve25519: include potential fips140=only error in panic message
Updates golang/go#75061 Change-Id: I6a6a696474122a12c12696d8a2efec902572327d Reviewed-on: https://go-review.googlesource.com/c/crypto/+/696996 Reviewed-by: Nicola Murino <nicola.murino@gmail.com> Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
1 parent f5a2eab commit b8d8dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curve25519/curve25519.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func ScalarBaseMult(dst, scalar *[32]byte) {
3636
curve := ecdh.X25519()
3737
priv, err := curve.NewPrivateKey(scalar[:])
3838
if err != nil {
39-
panic("curve25519: internal error: scalarBaseMult was not 32 bytes")
39+
panic("curve25519: " + err.Error())
4040
}
4141
copy(dst[:], priv.PublicKey().Bytes())
4242
}

0 commit comments

Comments
 (0)