Struct parity_crypto::aes_gcm::Encryptor[][src]

pub struct Encryptor<'a> { /* fields omitted */ }

AES GCM encryptor.

Methods

impl<'a> Encryptor<'a>
[src]

Optional associated data which is not encrypted but authenticated.

Optional offset value. Only the slice [offset..] will be encrypted.

Please note that the pair (key, nonce) must never be reused. Using random nonces limits the number of messages encrypted with the same key to 2^32 (cf. [1])

Auto Trait Implementations

impl<'a> Send for Encryptor<'a>

impl<'a> Sync for Encryptor<'a>