diff options
Diffstat (limited to 'src/lib/pubkey/curve25519/curve25519.cpp')
-rw-r--r-- | src/lib/pubkey/curve25519/curve25519.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/curve25519/curve25519.cpp b/src/lib/pubkey/curve25519/curve25519.cpp index d6934748b..b314e16dc 100644 --- a/src/lib/pubkey/curve25519/curve25519.cpp +++ b/src/lib/pubkey/curve25519/curve25519.cpp @@ -24,7 +24,7 @@ secure_vector<byte> curve25519(const secure_vector<byte>& secret, const byte pubval[32]) { secure_vector<byte> out(32); - const int rc = curve25519_donna(&out[0], &secret[0], &pubval[0]); + const int rc = curve25519_donna(out.data(), secret.data(), pubval); BOTAN_ASSERT_EQUAL(rc, 0, "Return value of curve25519_donna is ok"); return out; } |