[x25519] donna function curve25519_mult generated different shared key

50 views
Skip to first unread message

HawkShea

unread,
Apr 8, 2024, 2:52:44 AMApr 8
to Crypto++ Users
Problem

I am using Donna Functions to generate two key pair and generate shared key for both side with function curve25519_mult .But the key generated twice is not the same.

  • I searched through the Internet for answer,not solved.
  • I checked my own code,no bug found.
  • I tested signing and verification.They are OK.
 What is the problem with the code below?  screenshot-1712558443510.png


Environment
  • system and version (Windows 10 Professional x64)
  • version of the Crypto++ library (Crypto++ 8.90, Master)
  • built the library by Visual Studio 2022

Jeffrey Walton

unread,
Apr 8, 2024, 2:56:06 AMApr 8
to Crypto++ Users
See <https://www.cryptopp.com/wiki/X25519> and the file validat7.cpp.

Jeff
Reply all
Reply to author
Forward
0 new messages