Struct xoodyak::XoodyakKeyed [−][src]
pub struct XoodyakKeyed { /* fields omitted */ }
Implementations
pub fn new(
key: &[u8],
nonce: Option<&[u8]>,
key_id: Option<&[u8]>,
counter: Option<&[u8]>
) -> Result<Self, Error>
pub fn absorb_key_and_nonce(
&mut self,
key: &[u8],
key_id: Option<&[u8]>,
nonce: Option<&[u8]>,
counter: Option<&[u8]>
) -> Result<(), Error>
pub fn aead_decrypt_detached(
&mut self,
out: &mut [u8],
auth_tag: &Tag,
bin: Option<&[u8]>
) -> Result<(), Error>
pub fn aead_decrypt_in_place_detached(
&mut self,
in_out: &mut [u8],
auth_tag: &Tag
) -> Result<(), Error>
pub fn aead_encrypt_to_vec_detached(
&mut self,
bin: Option<&[u8]>
) -> Result<(Vec<u8>, Tag), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for XoodyakKeyed
impl Send for XoodyakKeyed
impl Sync for XoodyakKeyed
impl Unpin for XoodyakKeyed
impl UnwindSafe for XoodyakKeyed
Blanket Implementations
Mutably borrows from an owned value. Read more