Struct message_verifier::AesGcmEncryptor [] [src]

pub struct AesGcmEncryptor { /* fields omitted */ }

AesGcmEncryptor struct; similiar to ActiveSupport::MessageEncryptor

Methods

impl AesGcmEncryptor
[src]

Create a new AesGcmEncryptor object

Set the cipher using the KeySize enum

Trait Implementations

impl Encryptor for AesGcmEncryptor
[src]

Decrypt a message, using AEAD, generated by a compatible Encryptor. The message must first be verified before decryption is attempted.

Encrypt a message, using AEAD, from the input message. This message can be consumed by a compatible Encryptor