Struct encrypted_message::utilities::key_decoder::HexKeyDecoder
source · pub struct HexKeyDecoder;Expand description
Hexadecimal key decoder.
Implementations§
source§impl HexKeyDecoder
impl HexKeyDecoder
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 hexadecimal-encoded keys.
Panics if any of the keys are not valid hexadecimal, or if a decoded key is not 32 bytes long.
Auto Trait Implementations§
impl Freeze for HexKeyDecoder
impl RefUnwindSafe for HexKeyDecoder
impl Send for HexKeyDecoder
impl Sync for HexKeyDecoder
impl Unpin for HexKeyDecoder
impl UnwindSafe for HexKeyDecoder
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