pub struct RsaKeyGen;Expand description
Toy RSA key generation from scratch: finds two random-ish primes near the given starting point using Miller-Rabin, then builds the key pair.
§WARNING
This is purely educational. Key sizes are dangerously small.
Implementations§
Auto Trait Implementations§
impl Freeze for RsaKeyGen
impl RefUnwindSafe for RsaKeyGen
impl Send for RsaKeyGen
impl Sync for RsaKeyGen
impl Unpin for RsaKeyGen
impl UnsafeUnpin for RsaKeyGen
impl UnwindSafe for RsaKeyGen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more