pub enum KeyTransportAlgorithm {
RsaOaepMgf1p,
RsaOaep11,
}Expand description
Supported asymmetric session-key transport algorithms.
Variants§
RsaOaepMgf1p
XML Encryption 1.0 OAEP URI with SHA-1/MGF1-SHA1 absent-field defaults.
An explicit DigestMethod or XMLEnc 1.1 MGF child overrides the corresponding default, matching libxmlsec1 1.3.13 behavior.
RsaOaep11
XML Encryption 1.1 OAEP with explicitly parsed digest and MGF settings.
Implementations§
Source§impl KeyTransportAlgorithm
impl KeyTransportAlgorithm
Sourcepub const fn requires_explicit_permission(self) -> bool
pub const fn requires_explicit_permission(self) -> bool
Historical transport is never enabled merely by compiling its primitive.
Sourcepub fn from_uri(uri: &str) -> Result<Self, XmlEncError>
pub fn from_uri(uri: &str) -> Result<Self, XmlEncError>
Parse a supported XMLEnc key-transport URI.
Trait Implementations§
Source§impl Clone for KeyTransportAlgorithm
impl Clone for KeyTransportAlgorithm
impl Copy for KeyTransportAlgorithm
Source§impl Debug for KeyTransportAlgorithm
impl Debug for KeyTransportAlgorithm
impl Eq for KeyTransportAlgorithm
Source§impl Hash for KeyTransportAlgorithm
impl Hash for KeyTransportAlgorithm
Source§impl PartialEq for KeyTransportAlgorithm
impl PartialEq for KeyTransportAlgorithm
impl StructuralPartialEq for KeyTransportAlgorithm
Auto Trait Implementations§
impl Freeze for KeyTransportAlgorithm
impl RefUnwindSafe for KeyTransportAlgorithm
impl Send for KeyTransportAlgorithm
impl Sync for KeyTransportAlgorithm
impl Unpin for KeyTransportAlgorithm
impl UnsafeUnpin for KeyTransportAlgorithm
impl UnwindSafe for KeyTransportAlgorithm
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