diff options
author | Simon Warta <[email protected]> | 2015-06-23 20:07:15 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 20:07:15 +0200 |
commit | fd1c77c5cf8d86c6ba6d2f5c8cf898502c463eba (patch) | |
tree | 6ac5df8e74d2ad203f03da28aba46e2a4bfdbea5 /src/lib/pubkey/curve25519 | |
parent | 2a83523815461a4aa461ce5cc3b1288727440705 (diff) |
lib/pubkey: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/pubkey/curve25519')
-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; } |