You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the purpose of the sk_eph: Self::PrivateKey parameter in the kem::encap_with_eph function.
The name suggest it is the ephemeral secret but it's the role of this function to generate it and it is not coherent with the type.
This parameters seems to be useless. Is there something I did not understand ?
Regards
The text was updated successfully, but these errors were encountered:
encap_with_eph doesn't generate its own ephemeral secret, in fact, it doesn't even take an RNG as input. Generating sk_eph is the job of encap. I split out the functionality because 1) it's slightly easier this way and 2) I need encap_with_eph for running test vectors.
Hello,
What is the purpose of the
sk_eph: Self::PrivateKey
parameter in thekem::encap_with_eph
function.The name suggest it is the ephemeral secret but it's the role of this function to generate it and it is not coherent with the type.
This parameters seems to be useless. Is there something I did not understand ?
Regards
The text was updated successfully, but these errors were encountered: