[−][src]Struct gcrypt::cipher::Cipher
Methods
impl Cipher
[src]
pub unsafe fn from_raw(raw: gcry_cipher_hd_t) -> Self
[src]
pub fn as_raw(&self) -> gcry_cipher_hd_t
[src]
pub fn into_raw(self) -> gcry_cipher_hd_t
[src]
pub fn new(algo: Algorithm, mode: Mode) -> Result<Cipher>
[src]
pub fn with_flags(algo: Algorithm, mode: Mode, flags: Flags) -> Result<Cipher>
[src]
pub fn set_key(&mut self, key: impl AsRef<[u8]>) -> Result<()>
[src]
pub fn set_iv(&mut self, iv: impl AsRef<[u8]>) -> Result<()>
[src]
pub fn set_ctr(&mut self, ctr: impl AsRef<[u8]>) -> Result<()>
[src]
pub fn reset(&mut self) -> Result<()>
[src]
pub fn authenticate(&mut self, bytes: &[u8]) -> Result<()>
[src]
pub fn get_tag(&mut self, tag: &mut [u8]) -> Result<()>
[src]
pub fn verify_tag(&mut self, tag: &[u8]) -> Result<()>
[src]
pub fn encrypt(&mut self, input: &[u8], output: &mut [u8]) -> Result<()>
[src]
pub fn decrypt(&mut self, input: &[u8], output: &mut [u8]) -> Result<()>
[src]
pub fn encrypt_inplace(&mut self, buffer: &mut [u8]) -> Result<()>
[src]
pub fn decrypt_inplace(&mut self, buffer: &mut [u8]) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cipher
impl !Send for Cipher
impl !Sync for Cipher
impl Unpin for Cipher
impl UnwindSafe for Cipher
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>,