Closed anonion0 closed 2 years ago
Note that I also made SharedSecret a new type instead of a type alias, for two reasons:
SharedSecret
PublicKey
I also just noted that Secret::as_scalar() calls Scalar::from_bytes() and thus creates a copy. I didn't add zeroize support for Scalar (yet).
Secret::as_scalar()
Scalar::from_bytes()
Scalar
LGTM
Note that I also made
SharedSecret
a new type instead of a type alias, for two reasons:SharedSecret
to be zeroized on drop without the overhead of doing the same forPublicKey
I also just noted that
Secret::as_scalar()
callsScalar::from_bytes()
and thus creates a copy. I didn't add zeroize support forScalar
(yet).