[−][src]Struct svanill::format::SvanillBoxV0
Fields
iterations: u32
salt: [u8; 16]
iv: [u8; 12]
aad: [u8; 21]
Implementations
impl SvanillBoxV0
[src]
pub fn new(iterations: u32, salt: [u8; 16], iv: [u8; 12]) -> Self
[src]
pub fn to_vec(&self, content: &[u8]) -> Vec<u8>
[src]
pub fn serialize(&self, ciphertext: &[u8]) -> String
[src]
pub fn deserialize(
data: &[u8]
) -> Result<(SvanillBoxV0, Vec<u8>), SvanillBoxError>
[src]
data: &[u8]
) -> Result<(SvanillBoxV0, Vec<u8>), SvanillBoxError>
Trait Implementations
impl From<SvanillBoxV0> for SvanillBox
[src]
fn from(sb: SvanillBoxV0) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for SvanillBoxV0
impl Send for SvanillBoxV0
impl Sync for SvanillBoxV0
impl Unpin for SvanillBoxV0
impl UnwindSafe for SvanillBoxV0
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,