Crate llm_config_crypto

Crate llm_config_crypto 

Source
Expand description

Cryptographic primitives for LLM Config Manager

This module provides secure encryption and decryption for sensitive configuration values using AES-256-GCM with envelope encryption pattern.

Modules§

key_derivation
Key derivation using Argon2id

Structs§

EncryptedData
Encrypted data with associated metadata
SecretKey
A cryptographic key that is automatically zeroed when dropped

Enums§

Algorithm
Encryption algorithm identifier
CryptoError

Constants§

KEY_SIZE
Size of AES-256 keys in bytes
NONCE_SIZE
Size of AES-GCM nonces in bytes (96 bits)
TAG_SIZE
Size of AES-GCM authentication tag in bytes (128 bits)

Functions§

decrypt
Decrypt ciphertext using AES-256-GCM
encrypt
Encrypt plaintext using AES-256-GCM

Type Aliases§

Result