pd_cipher::encryptors::aes_gcm
AES-GCM (Galois/Counter Mode) encryption implementations.
Type Aliases
Aes128GcmEncryptor
Type alias for AES-128-GCM encryptor using the generic AEAD implementation.
pub type Aes128GcmEncryptor = ...
Aes192GcmEncryptor
AES-192-GCM encryptor providing intermediate security strength.
This encryptor uses AES-192 with Galois/Counter Mode for authenticated encryption. Provides 192-bit security, balancing performance and security between AES-128 and AES-256.
Performance Characteristics
- Security: 192-bit key strength
- Speed: ~15% slower than AES-128, ~10% faster than AES-256
- Hardware Support: Good on most modern processors
- Use Cases: Applications requiring enhanced security without AES-256 overhead
Examples
use pd_cipher::encryptors::aes_gcm::Aes192GcmEncryptor;
use pd_cipher::keys::{KeyGenerator, EncryptionAlgorithm};
# fn example() -> pd_cipher::Result<()> {
let key = KeyGenerator::generate_key(EncryptionAlgorithm::Aes192Gcm)?;
// Aes192GcmEncryptor is used internally by PDCipher
// Direct instantiation not needed for typical usage
# Ok(())
# }
pub type Aes192GcmEncryptor = ...
Aes256GcmEncryptor
AES-256-GCM encryptor providing maximum security strength.
This encryptor uses AES-256 with Galois/Counter Mode for authenticated encryption. Provides 256-bit security for applications requiring long-term cryptographic protection.
pub type Aes256GcmEncryptor = ...