Open samueltangz opened 4 years ago
Hi,
thanks for raising this issue.
I resolved the issue by correctly normalizing the key bytes before calculating the public key. Additional fixes now ensure compatibility for signing keys as well.
The newest release 0.6 also fixes some more compatibility issues. Additional tests compare the functionality with Apple CryptoKit
.
I hope the library now performs as expected.
Hi, I have been testing around with this library and found that the public key could not be correctly computed from the private keys.
The two test vectors are, respectively, extracted from test vector from Noise protocol, and the test case given in Curve25519 package.
The cause is, some of the bits in the secret key must be unset (and some otherwise need to be set) before computation: