diff options
author | Jack Lloyd <[email protected]> | 2019-01-17 09:16:50 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-01-17 09:16:50 -0500 |
commit | 377ed5445083af5703fe8b0411ad162af1766012 (patch) | |
tree | 77936fb806a62f37508803651b7d73bb8af3b11c /src/lib/pubkey/ed25519 | |
parent | 4c3016578da7b9840bb77563f4257df11c9f1de9 (diff) |
Fix some warnings from PVS-Studio
No real bugs, but pointed out some odd constructs and duplicated logic
Diffstat (limited to 'src/lib/pubkey/ed25519')
-rw-r--r-- | src/lib/pubkey/ed25519/ed25519_key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/ed25519/ed25519_key.cpp b/src/lib/pubkey/ed25519/ed25519_key.cpp index bdb6a8547..ee1d19edb 100644 --- a/src/lib/pubkey/ed25519/ed25519_key.cpp +++ b/src/lib/pubkey/ed25519/ed25519_key.cpp @@ -47,7 +47,7 @@ Ed25519_PrivateKey::Ed25519_PrivateKey(const secure_vector<uint8_t>& secret_key) if(secret_key.size() == 64) { m_private = secret_key; - m_public.assign(&m_private[32], &m_private[64]); + m_public.assign(m_private.begin() + 32, m_private.end()); } else if(secret_key.size() == 32) { |