diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-03-20 01:36:33 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-03-20 01:36:33 -0400 |
commit | 44f71792f55f7fbc56c97724d210ae6630033656 (patch) | |
tree | 3a8435868bbad0ae7d2c19f1e5064bb66c157e1c /xed25519.cpp | |
parent | 7296df37b1bbe46397680dc9b7f2ef23591694a8 (diff) | |
download | cryptopp-git-44f71792f55f7fbc56c97724d210ae6630033656.tar.gz |
Fix x25519 constructor
Diffstat (limited to 'xed25519.cpp')
-rw-r--r-- | xed25519.cpp | 4 |
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);
|