[][src]Struct yaca::DecryptContext

pub struct DecryptContext { /* fields omitted */ }

Context for Decrypt operations

Implementations

impl DecryptContext[src]

pub fn initialize(
    algo: &EncryptAlgorithm,
    bcm: &BlockCipherMode,
    sym_key: &Key,
    iv: Option<&Key>
) -> Result<DecryptContext>
[src]

Initializes a decryption context

pub fn update(&self, ciphertext: &[u8]) -> Result<Vec<u8>>[src]

Decrypts chunk of the data

  • ciphertext is a chunk of encrypted data to be decrypted.
  • Returns a chunk of decrypted data.

pub fn finalize(&self) -> Result<Vec<u8>>[src]

Decrypts the final chunk of the data

  • Returns the final chunk of decrypted data.

Trait Implementations

impl ContextWithPadding for DecryptContext[src]

impl ContextWithRc2Supported for DecryptContext[src]

impl ContextWithXcmDecryptProperties for DecryptContext[src]

impl Drop for DecryptContext[src]

Auto Trait Implementations

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.