Skip to content

getSharedSecret doesn't generate the same secret... #48

Answered by paulmillr
adavault asked this question in Q&A
Discussion options

You must be logged in to vote

The issue was, as usual, in endianness.

toX25519() returned Big endian integer while scalarMult consumed Little Endian Uint8Array. I've fixed it in 9f9c2f0. Sorry for that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adavault
Comment options

Answer selected by adavault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants