Skip to main content

Module encryption

Module encryption 

Source
Expand description

Encryption operations for AgenticComm.

Provides:

  • ChaCha20-Poly1305 AEAD encryption (original)
  • AES-256-GCM AEAD encryption (new)
  • EncryptionScheme enum to select algorithm

Structs§

Aes256GcmCipher
AES-256-GCM encryption context.
ChaCha20Cipher
ChaCha20-Poly1305 encryption context.
EncryptedPayload
Encrypted message payload.
EncryptionKey
An encryption key for channel communication.

Functions§

decrypt
Decrypt an encrypted payload using ChaCha20-Poly1305.
decrypt_aes
Decrypt an EncryptedPayload using AES-256-GCM.
encrypt
Encrypt plaintext content using ChaCha20-Poly1305.
encrypt_aes
Encrypt plaintext using AES-256-GCM, returning an EncryptedPayload.