I noticed that for the kx construction, both public keys are added to the KDF hash. (source)
I am under the impression that the public keys are already incorporated into the derived key, in a way, by the scalarmult step. (source)
Is adding the public keys to the KDF hash done merely out of an abundance of caution, or does it prevent a concrete attack on the plain scalarmult?
Thank you for writing this package so cleanly that I can link to small pieces of the source to help ask my question. 😄
I noticed that for the
kxconstruction, both public keys are added to the KDF hash. (source)I am under the impression that the public keys are already incorporated into the derived key, in a way, by the
scalarmultstep. (source)Is adding the public keys to the KDF hash done merely out of an abundance of caution, or does it prevent a concrete attack on the plain
scalarmult?Thank you for writing this package so cleanly that I can link to small pieces of the source to help ask my question. 😄