pub struct KeyIVPair {
pub key: Vec<u8>,
pub iv: Vec<u8>,
}Fields§
§key: Vec<u8>§iv: Vec<u8>Implementations§
Source§impl KeyIVPair
impl KeyIVPair
pub const BYTE_SIZE: usize = 48usize
pub const BIT_SIZE: usize = 384usize
pub fn serialize(&self, keypair: &Rsa<Public>) -> Result<Vec<u8>>
pub fn deserialize_mut(
data: &mut Vec<u8>,
keypair: &Rsa<Private>,
) -> Result<Self>where
Self: Sized,
pub fn deserialize(data: &Vec<u8>, keypair: &Rsa<Private>) -> Result<Self>where
Self: Sized,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyIVPair
impl RefUnwindSafe for KeyIVPair
impl Send for KeyIVPair
impl Sync for KeyIVPair
impl Unpin for KeyIVPair
impl UnwindSafe for KeyIVPair
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