summaryrefslogtreecommitdiff
path: root/xed25519.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-20 01:36:33 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-20 01:36:33 -0400
commit44f71792f55f7fbc56c97724d210ae6630033656 (patch)
tree3a8435868bbad0ae7d2c19f1e5064bb66c157e1c /xed25519.cpp
parent7296df37b1bbe46397680dc9b7f2ef23591694a8 (diff)
downloadcryptopp-git-44f71792f55f7fbc56c97724d210ae6630033656.tar.gz
Fix x25519 constructor
Diffstat (limited to 'xed25519.cpp')
-rw-r--r--xed25519.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xed25519.cpp b/xed25519.cpp
index 1e3e7f40..5095b5d2 100644
--- a/xed25519.cpp
+++ b/xed25519.cpp
@@ -73,8 +73,8 @@ NAMESPACE_BEGIN(CryptoPP)
x25519::x25519(const byte y[PUBLIC_KEYLENGTH], const byte x[SECRET_KEYLENGTH])
{
- std::memcpy(m_pk, y, SECRET_KEYLENGTH);
- std::memcpy(m_sk, x, PUBLIC_KEYLENGTH);
+ std::memcpy(m_pk, y, PUBLIC_KEYLENGTH);
+ std::memcpy(m_sk, x, SECRET_KEYLENGTH);
CRYPTOPP_ASSERT(IsClamped(m_sk) == true);
CRYPTOPP_ASSERT(IsSmallOrder(m_pk) == false);