Expand description
Encryption operations for AgenticComm.
Provides:
- ChaCha20-Poly1305 AEAD encryption (original)
- AES-256-GCM AEAD encryption (new)
EncryptionSchemeenum to select algorithm
Structs§
- Aes256
GcmCipher - AES-256-GCM encryption context.
- ChaCha20
Cipher - ChaCha20-Poly1305 encryption context.
- Encrypted
Payload - Encrypted message payload.
- Encryption
Key - An encryption key for channel communication.
Functions§
- decrypt
- Decrypt an encrypted payload using ChaCha20-Poly1305.
- decrypt_
aes - Decrypt an
EncryptedPayloadusing AES-256-GCM. - encrypt
- Encrypt plaintext content using ChaCha20-Poly1305.
- encrypt_
aes - Encrypt plaintext using AES-256-GCM, returning an
EncryptedPayload.