pub enum CipherData {
Value {
value: String,
},
Reference {
uri: String,
transforms: Vec<Transform>,
},
Bytes(Vec<u8>),
}Expand description
Ciphertext storage specified by XMLEnc 1.1 section 3.3.
Variants§
Value
Whitespace-normalized base64 text from CipherValue.
Reference
A source-anchored reference, resolved before cryptographic dispatch.
Fields
Bytes(Vec<u8>)
Ciphertext octets resolved by the operation or supplied by the caller.
Implementations§
Source§impl CipherData
impl CipherData
Sourcepub fn inline_value(&self) -> Option<&str>
pub fn inline_value(&self) -> Option<&str>
Return an inline base64 value, if this ciphertext is enveloped.
Sourcepub fn inline_value_mut(&mut self) -> Option<&mut String>
pub fn inline_value_mut(&mut self) -> Option<&mut String>
Mutably access an inline value without changing its storage variant.
Trait Implementations§
Source§impl Clone for CipherData
impl Clone for CipherData
Source§impl Debug for CipherData
impl Debug for CipherData
impl Eq for CipherData
Source§impl PartialEq for CipherData
impl PartialEq for CipherData
impl StructuralPartialEq for CipherData
Auto Trait Implementations§
impl Freeze for CipherData
impl RefUnwindSafe for CipherData
impl Send for CipherData
impl Sync for CipherData
impl Unpin for CipherData
impl UnsafeUnpin for CipherData
impl UnwindSafe for CipherData
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