Struct win_crypto_ng::asymmetric::builder::DsaParamsV2
source · pub struct DsaParamsV2 {
pub count: u32,
pub hash: DsaHashAlgorithm,
pub standard: FipsVersion,
pub seed_len: u32,
pub group_size: u32,
pub prime: Vec<u8>,
pub generator: Vec<u8>,
}
Expand description
Algorithm-specific DSA parameters. Applies to keys with greater than 1024 bit length.
Fields§
§count: u32
The number of iterations performed to generate the prime number q from the seed. For more information, see NIST standard FIPS186-3.
hash: DsaHashAlgorithm
Specifies the hashing algorithm to use.
standard: FipsVersion
Specifies the Federal Information Processing Standard (FIPS) to apply.
seed_len: u32
Length of the seed used to generate the prime number q.
group_size: u32
Size of the prime number q. Currently, if the key is less than 128 bits, q is 20 bytes long. If the key exceeds 256 bits, q is 32 bytes long.
prime: Vec<u8>
DSA prime number, in big-endian format.
generator: Vec<u8>
DSA generator number, in big-endian format.
Trait Implementations§
impl BuilderParams for DsaParamsV2
Auto Trait Implementations§
impl RefUnwindSafe for DsaParamsV2
impl Send for DsaParamsV2
impl Sync for DsaParamsV2
impl Unpin for DsaParamsV2
impl UnwindSafe for DsaParamsV2
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