[−][src]Struct yaca::DecryptContext
Context for Decrypt
operations
Implementations
impl DecryptContext
[src]
pub fn initialize(
algo: &EncryptAlgorithm,
bcm: &BlockCipherMode,
sym_key: &Key,
iv: Option<&Key>
) -> Result<DecryptContext>
[src]
algo: &EncryptAlgorithm,
bcm: &BlockCipherMode,
sym_key: &Key,
iv: Option<&Key>
) -> Result<DecryptContext>
Initializes a decryption context
- Parameters passed must match the parameters used to encrypt the data.
- See
EncryptContext::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 DecryptContext
[src]
pub fn set_property_padding(&self, padding: &Padding) -> Result<()>
[src]
impl ContextWithRc2Supported for DecryptContext
[src]
pub fn set_property_rc2_effective_key_bits(
&self,
rc2_eff_key_bits: usize
) -> Result<()>
[src]
&self,
rc2_eff_key_bits: usize
) -> Result<()>
impl ContextWithXcmDecryptProperties for DecryptContext
[src]
pub fn set_property_ccm_aad(
&self,
ccm_aad: &[u8],
ciphertext_len: usize
) -> Result<()>
[src]
&self,
ccm_aad: &[u8],
ciphertext_len: usize
) -> Result<()>
pub fn set_property_gcm_tag(&self, gcm_tag: &[u8]) -> Result<()>
[src]
pub fn set_property_gcm_aad(&self, gcm_aad: &[u8]) -> Result<()>
[src]
pub fn set_property_ccm_tag(&self, ccm_tag: &[u8]) -> Result<()>
[src]
impl Drop for DecryptContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for DecryptContext
impl !Send for DecryptContext
impl !Sync for DecryptContext
impl Unpin for DecryptContext
impl UnwindSafe for DecryptContext
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,
pub 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.
pub 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>,