[][src]Struct yaca::OpenContext

pub struct OpenContext { /* fields omitted */ }

Context for Open operations

Implementations

impl OpenContext[src]

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

Initializes an asymmetric decryption context

  • prv_key is a matching key to the public one that was used in the encryption.
  • Other parameters passed must match the parameters used to encrypt the data.
  • See SealContext::initialize().

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 OpenContext[src]

impl ContextWithRc2Supported for OpenContext[src]

impl ContextWithXcmDecryptProperties for OpenContext[src]

impl Drop for OpenContext[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.