We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a2eab commit b8d8daeCopy full SHA for b8d8dae
curve25519/curve25519.go
@@ -36,7 +36,7 @@ func ScalarBaseMult(dst, scalar *[32]byte) {
36
curve := ecdh.X25519()
37
priv, err := curve.NewPrivateKey(scalar[:])
38
if err != nil {
39
- panic("curve25519: internal error: scalarBaseMult was not 32 bytes")
+ panic("curve25519: " + err.Error())
40
}
41
copy(dst[:], priv.PublicKey().Bytes())
42
0 commit comments