pub struct Dsa;Expand description
Namespace wrapper for the DSA construction.
Implementations§
Source§impl Dsa
impl Dsa
Sourcepub fn from_secret_exponent(
prime: &BigUint,
subgroup_order: &BigUint,
generator: &BigUint,
secret: &BigUint,
) -> Option<(DsaPublicKey, DsaPrivateKey)>
pub fn from_secret_exponent( prime: &BigUint, subgroup_order: &BigUint, generator: &BigUint, secret: &BigUint, ) -> Option<(DsaPublicKey, DsaPrivateKey)>
Derive a DSA key pair from explicit subgroup parameters and secret exponent.
Sourcepub fn generate<R: Csprng>(
rng: &mut R,
bits: usize,
) -> Option<(DsaPublicKey, DsaPrivateKey)>
pub fn generate<R: Csprng>( rng: &mut R, bits: usize, ) -> Option<(DsaPublicKey, DsaPrivateKey)>
Generate a DSA key pair over a prime-order subgroup.
Auto Trait Implementations§
impl Freeze for Dsa
impl RefUnwindSafe for Dsa
impl Send for Dsa
impl Sync for Dsa
impl Unpin for Dsa
impl UnsafeUnpin for Dsa
impl UnwindSafe for Dsa
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