pub enum Algorithm {
Show 65 variants
MlKem512,
MlKem768,
MlKem1024,
CbKem348864,
CbKem460896,
CbKem6688128,
CbKem6960119,
CbKem8192128,
Hqc128,
Hqc192,
Hqc256,
MlDsa44,
MlDsa65,
MlDsa87,
FnDsa,
FnDsa512,
FnDsa1024,
SlhDsaSha256128fRobust,
SlhDsaSha256192fRobust,
SlhDsaSha256256fRobust,
SlhDsaShake256128fRobust,
SlhDsaShake256192fRobust,
SlhDsaShake256256fRobust,
Shake128,
Shake256,
CShake128,
CShake256,
Sha3_224,
Sha3_256,
Sha3_384,
Sha3_512,
Keccak224,
Keccak256,
Keccak384,
Keccak512,
Kt128,
Kt256,
TurboShake128,
TurboShake256,
Kmac128,
Kmac256,
TupleHash128,
TupleHash256,
ParallelHash128,
ParallelHash256,
Sha224,
Sha256,
Sha384,
Sha512,
Sha512_224,
Sha512_256,
Saturnin,
Shake256Aead,
DuplexSpongeAead,
TweakAead,
RomulusN,
RomulusM,
LatticeRingSignature,
LatticeBlindIssuance,
LatticeAnonymousToken,
LatticeNullifierRegistry,
LatticeWitnessNullifier,
LatticeDualRingLb,
MixOnionRouting,
SessionResumptionBinding,
}Expand description
Algorithm identifiers for cryptographic operations
Variants§
MlKem512
MlKem768
MlKem1024
CbKem348864
CbKem460896
CbKem6688128
CbKem6960119
CbKem8192128
Hqc128
Hqc192
Hqc256
MlDsa44
MlDsa65
MlDsa87
FnDsa
FnDsa512
FnDsa1024
SlhDsaSha256128fRobust
SlhDsaSha256192fRobust
SlhDsaSha256256fRobust
SlhDsaShake256128fRobust
SlhDsaShake256192fRobust
SlhDsaShake256256fRobust
Shake128
Shake256
CShake128
CShake256
Sha3_224
Sha3_256
Sha3_384
Sha3_512
Keccak224
Keccak256
Keccak384
Keccak512
Kt128
Kt256
TurboShake128
TurboShake256
Kmac128
Kmac256
TupleHash128
TupleHash256
ParallelHash128
ParallelHash256
Sha224
Sha256
Sha384
Sha512
Sha512_224
Sha512_256
Saturnin
Shake256Aead
DuplexSpongeAead
TweakAead
RomulusN
RomulusM
LatticeRingSignature
Privacy-protocol identifiers (not standalone KEM/sig/hash providers).
LatticeBlindIssuance
LatticeAnonymousToken
LatticeNullifierRegistry
LatticeWitnessNullifier
Witness-derived nullifier mode (SHAKE256 over opening witness wire; see lib-q-lattice-zkp).
LatticeDualRingLb
DualRing-LB (CCS 2021 Alg. 3 aggregated verify on Ajtai openings, lib-q-ring-sig).
MixOnionRouting
ML-KEM-768 layered encapsulation with Saturnin AEAD per hop (mix-layer transport).
SessionResumptionBinding
SHAKE256 session token and stateless retry-cookie derivation for resumption handshakes.
Implementations§
Source§impl Algorithm
impl Algorithm
Sourcepub fn security_level(&self) -> u32
pub fn security_level(&self) -> u32
Get the security level for this algorithm
Sourcepub fn category(&self) -> AlgorithmCategory
pub fn category(&self) -> AlgorithmCategory
Get the algorithm category
Sourcepub fn supports_category(&self, category: AlgorithmCategory) -> bool
pub fn supports_category(&self, category: AlgorithmCategory) -> bool
Check if an algorithm supports a specific category
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Algorithm
impl<'de> Deserialize<'de> for Algorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromWasmAbi for Algorithm
impl FromWasmAbi for Algorithm
Source§impl IntoWasmAbi for Algorithm
impl IntoWasmAbi for Algorithm
Source§impl OptionFromWasmAbi for Algorithm
impl OptionFromWasmAbi for Algorithm
Source§impl OptionIntoWasmAbi for Algorithm
impl OptionIntoWasmAbi for Algorithm
Source§impl Ord for Algorithm
impl Ord for Algorithm
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
Source§impl TryFromJsValue for Algorithm
impl TryFromJsValue for Algorithm
Source§impl VectorFromWasmAbi for Algorithm
impl VectorFromWasmAbi for Algorithm
Source§impl VectorIntoWasmAbi for Algorithm
impl VectorIntoWasmAbi for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.