Struct parity_crypto::aes_gcm::Decryptor [−][src]
pub struct Decryptor<'a> { /* fields omitted */ }
AES GCM decryptor.
Methods
impl<'a> Decryptor<'a>
[src]
impl<'a> Decryptor<'a>
pub fn aes_128_gcm(key: &[u8; 16]) -> Result<Decryptor<'a>, SymmError>
[src]
pub fn aes_128_gcm(key: &[u8; 16]) -> Result<Decryptor<'a>, SymmError>
pub fn aes_256_gcm(key: &[u8; 32]) -> Result<Decryptor<'a>, SymmError>
[src]
pub fn aes_256_gcm(key: &[u8; 32]) -> Result<Decryptor<'a>, SymmError>
pub fn associate(&mut self, data: &'a [u8]) -> &mut Self
[src]
pub fn associate(&mut self, data: &'a [u8]) -> &mut Self
Optional associated data which is not encrypted but authenticated.
pub fn offset(&mut self, off: usize) -> &mut Self
[src]
pub fn offset(&mut self, off: usize) -> &mut Self
Optional offset value. Only the slice [offset..]
will be decrypted.
pub fn decrypt(
&self,
nonce: &[u8; 12],
data: Vec<u8>
) -> Result<Vec<u8>, SymmError>
[src]
pub fn decrypt(
&self,
nonce: &[u8; 12],
data: Vec<u8>
) -> Result<Vec<u8>, SymmError>