pub struct PgcmsivHex { /* private fields */ }Expand description
ObtextCodec implementation for pgcmsiv.hex format.
Corresponds to format string: "pgcmsiv.hex"
Implementations§
Source§impl PgcmsivHex
impl PgcmsivHex
Sourcepub fn new(key: &str) -> Result<Self, Error>
pub fn new(key: &str) -> Result<Self, Error>
Create a new instance from a 128-character hex key
string (the canonical key form). For raw bytes use
Self::from_bytes; Self::from_hex_key is the
explicit-hex equivalent of this constructor.
Sourcepub fn from_hex_key(key_hex: &str) -> Result<Self, Error>
pub fn from_hex_key(key_hex: &str) -> Result<Self, Error>
Create a new instance from a 128-character hex key.
Strict hex — rejects base64. Use Self::new for the
length-routing entry point that accepts both.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PgcmsivHex
impl RefUnwindSafe for PgcmsivHex
impl Send for PgcmsivHex
impl Sync for PgcmsivHex
impl Unpin for PgcmsivHex
impl UnsafeUnpin for PgcmsivHex
impl UnwindSafe for PgcmsivHex
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