#[non_exhaustive]pub enum RngOutputKind {
Generic,
AeadNonce12,
Argon2Salt16,
Argon2Salt32,
Aes256GcmKey,
MlKem1024Seed,
MlDsa87Seed,
Ed25519Seed,
SlhDsaSha2_128sSeed,
}Expand description
Purpose of the random output being generated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic
Generic random bytes with no fixed length.
AeadNonce12
A 12-byte AEAD nonce.
Argon2Salt16
A 16-byte Argon2 salt.
Argon2Salt32
A 32-byte Argon2 salt.
Aes256GcmKey
A 32-byte AES-256-GCM key.
MlKem1024Seed
A 64-byte ML-KEM-1024 seed.
MlDsa87Seed
A 32-byte ML-DSA-87 seed.
Ed25519Seed
A 32-byte Ed25519 private seed.
SlhDsaSha2_128sSeed
One 16-byte SLH-DSA-SHA2-128s key-generation seed component.
Trait Implementations§
Source§impl Clone for RngOutputKind
impl Clone for RngOutputKind
Source§fn clone(&self) -> RngOutputKind
fn clone(&self) -> RngOutputKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RngOutputKind
Source§impl Debug for RngOutputKind
impl Debug for RngOutputKind
Source§impl Display for RngOutputKind
impl Display for RngOutputKind
impl Eq for RngOutputKind
Source§impl PartialEq for RngOutputKind
impl PartialEq for RngOutputKind
impl StructuralPartialEq for RngOutputKind
Auto Trait Implementations§
impl Freeze for RngOutputKind
impl RefUnwindSafe for RngOutputKind
impl Send for RngOutputKind
impl Sync for RngOutputKind
impl Unpin for RngOutputKind
impl UnsafeUnpin for RngOutputKind
impl UnwindSafe for RngOutputKind
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