pub enum KeyEncapsulationAlgorithm {
MlKem512,
MlKem768,
MlKem1024,
}Expand description
Experimental libxmlsec1 ML-KEM parameter sets (not signature algorithms).
Variants§
Implementations§
Source§impl KeyEncapsulationAlgorithm
impl KeyEncapsulationAlgorithm
Sourcepub const fn uri(self) -> &'static str
pub const fn uri(self) -> &'static str
Exact libxmlsec1 experimental wire identifier, not a W3C algorithm URI.
Sourcepub const fn public_key_len(self) -> usize
pub const fn public_key_len(self) -> usize
Raw encapsulation-key length, RFC 9935 Appendix B.
Sourcepub const fn expanded_key_len(self) -> usize
pub const fn expanded_key_len(self) -> usize
Expanded private-key length, RFC 9935 Appendix B.
Sourcepub const fn ciphertext_len(self) -> usize
pub const fn ciphertext_len(self) -> usize
Fixed ciphertext length, RFC 9935 Appendix B.
Sourcepub const fn oid(self) -> ObjectIdentifier
pub const fn oid(self) -> ObjectIdentifier
RFC 9935 section 3 AlgorithmIdentifier OID.
Sourcepub fn from_oid(oid: ObjectIdentifier) -> Option<Self>
pub fn from_oid(oid: ObjectIdentifier) -> Option<Self>
Recognize the RFC 9935 parameter-set OID independently of capability.
Trait Implementations§
Source§impl Clone for KeyEncapsulationAlgorithm
impl Clone for KeyEncapsulationAlgorithm
impl Copy for KeyEncapsulationAlgorithm
Source§impl Debug for KeyEncapsulationAlgorithm
impl Debug for KeyEncapsulationAlgorithm
impl Eq for KeyEncapsulationAlgorithm
Source§impl Hash for KeyEncapsulationAlgorithm
impl Hash for KeyEncapsulationAlgorithm
impl StructuralPartialEq for KeyEncapsulationAlgorithm
Auto Trait Implementations§
impl Freeze for KeyEncapsulationAlgorithm
impl RefUnwindSafe for KeyEncapsulationAlgorithm
impl Send for KeyEncapsulationAlgorithm
impl Sync for KeyEncapsulationAlgorithm
impl Unpin for KeyEncapsulationAlgorithm
impl UnsafeUnpin for KeyEncapsulationAlgorithm
impl UnwindSafe for KeyEncapsulationAlgorithm
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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