diff --git a/x25519.cpp b/x25519.cpp index a2e673e..6be6508 100644 --- a/x25519.cpp +++ b/x25519.cpp @@ -135,7 +135,7 @@ void X25519Keys::setSecretKey (const std::vector& priv, bool calculateP { if (priv.size() != 32) { - throw std::runtime_error ("X25519Keys::setPrivateKey priv array size != 32"); + throw std::runtime_error ("X25519Keys::setSecretKey priv array size != 32"); } setSecretKey (priv.data(), calculatePublic); }