RsaPrivateKey self-zeroizes on drop, so add the ZeroizeOnDrop marker trait to RsaPrivateKey and all newtypes thereof, i.e. DecryptingKey and SigningKey for the various padding modes.
This also removes the Zeroize impl on RsaPrivateKey, since it self-zeroizes on Drop, and allowing Zeroize might accidentally permit use-after-zeroize vulnerabilities.
RsaPrivateKey
self-zeroizes on drop, so add theZeroizeOnDrop
marker trait toRsaPrivateKey
and all newtypes thereof, i.e.DecryptingKey
andSigningKey
for the various padding modes.This also removes the
Zeroize
impl onRsaPrivateKey
, since it self-zeroizes onDrop
, and allowingZeroize
might accidentally permit use-after-zeroize vulnerabilities.Closes #285.