[][src]Struct gcrypt::cipher::Cipher

pub struct 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

impl Debug for Cipher[src]

impl Drop for Cipher[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.