pub enum RandomAlgorithmId {
Rng,
DualECRng,
Fips186DsaRng,
}
Expand description
Random number generation algorithms identifiers
Variants§
Rng
The random-number generator algorithm.
Standard: FIPS 186-2, FIPS 140-2, NIST SP 800-90
Beginning with Windows Vista with SP1 and Windows Server 2008, the random number generator is based on the AES counter mode specified in the NIST SP 800-90 standard.
Windows Vista: The random number generator is based on the hash-based random number generator specified in the FIPS 186-2 standard.
Windows 8: Beginning with Windows 8, the RNG algorithm supports FIPS 186-3. Keys less than or equal to 1024 bits adhere to FIPS 186-2 and keys greater than 1024 to FIPS 186-3.
DualECRng
The dual elliptic curve random-number generator algorithm.
Standard: SP800-90.
Windows 8: Beginning with Windows 8, the EC RNG algorithm supports FIPS 186-3. Keys less than or equal to 1024 bits adhere to FIPS 186-2 and keys greater than 1024 to FIPS 186-3.
Windows 10: Beginning with Windows 10, the dual elliptic curve random
number generator algorithm has been removed. Existing uses of this
algorithm will continue to work; however, the random number generator is
based on the AES counter mode specified in the NIST SP 800-90 standard.
New code should use Rng
, and it is recommended that
existing code be changed to use Rng
.
Fips186DsaRng
The random-number generator algorithm suitable for DSA (Digital Signature RandomAlgorithmId).
Standard: FIPS 186-2.
Windows 8: Support for FIPS 186-3 begins.
Trait Implementations§
Source§impl Clone for RandomAlgorithmId
impl Clone for RandomAlgorithmId
Source§fn clone(&self) -> RandomAlgorithmId
fn clone(&self) -> RandomAlgorithmId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more