pub enum OnlineCiphertextEncryptor {
V1(OnlineCiphertextV1Encryptor),
}
Variants§
V1(OnlineCiphertextV1Encryptor)
Implementations§
Source§impl OnlineCiphertextEncryptor
impl OnlineCiphertextEncryptor
pub fn new( key: &[u8], aad: &[u8], chunk_size: u32, version: OnlineCiphertextVersion, ) -> OnlineCiphertextEncryptor
pub fn new_asymmetric( public_key: &PublicKey, aad: &[u8], chunk_size: u32, version: OnlineCiphertextVersion, ) -> OnlineCiphertextEncryptor
Source§impl OnlineCiphertextEncryptor
impl OnlineCiphertextEncryptor
pub fn get_chunk_size(&self) -> u32
pub fn get_tag_size(&self) -> usize
pub fn get_header(&self) -> OnlineCiphertextHeader
pub fn encrypt_next_chunk(&mut self, data: &[u8], aad: &[u8]) -> Result<Vec<u8>>
pub fn encrypt_next_chunk_in_place( &mut self, data: &mut Vec<u8>, aad: &[u8], ) -> Result<()>
pub fn encrypt_last_chunk(self, data: &[u8], aad: &[u8]) -> Result<Vec<u8>>
pub fn encrypt_last_chunk_in_place( self, data: &mut Vec<u8>, aad: &[u8], ) -> Result<()>
Auto Trait Implementations§
impl Freeze for OnlineCiphertextEncryptor
impl RefUnwindSafe for OnlineCiphertextEncryptor
impl Send for OnlineCiphertextEncryptor
impl Sync for OnlineCiphertextEncryptor
impl Unpin for OnlineCiphertextEncryptor
impl UnwindSafe for OnlineCiphertextEncryptor
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