Struct encrypted_message::utilities::key_decoder::Base64KeyDecoder
source · pub struct Base64KeyDecoder;Expand description
Base64 key decoder.
Implementations§
source§impl Base64KeyDecoder
impl Base64KeyDecoder
sourcepub fn decode_keys(keys: Vec<SecretString>) -> Vec<Secret<[u8; 32]>>
pub fn decode_keys(keys: Vec<SecretString>) -> Vec<Secret<[u8; 32]>>
Decodes a list of base64-encoded keys.
Panics if any of the keys are not valid base64, or if a decoded key is not 32 bytes long.
Auto Trait Implementations§
impl Freeze for Base64KeyDecoder
impl RefUnwindSafe for Base64KeyDecoder
impl Send for Base64KeyDecoder
impl Sync for Base64KeyDecoder
impl Unpin for Base64KeyDecoder
impl UnwindSafe for Base64KeyDecoder
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