1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Security module for Sentinel Vision System (Epic 13, Task 11.0)
//!
//! This module provides comprehensive security features for vision and document processing:
//!
//! - **Encryption**: ChaCha20-Poly1305 authenticated encryption for data at rest
//! - **Secure Memory**: Automatic memory zeroization using `zeroize` crate
//! - **Data Retention**: Configurable TTL-based data lifecycle management
//! - **Audit Logging**: Security event logging without sensitive data
//!
//! # Example
//!
//! ```
//! use paladin::infrastructure::security::{
//! encryption::EncryptionService,
//! audit::AuditLogger,
//! };
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! // Create encryption service
//! let encryption = EncryptionService::new()?;
//!
//! // Create audit logger
//! let audit = AuditLogger::new(true);
//!
//! // Encrypt sensitive data
//! let data = b"sensitive image data";
//! let encrypted = encryption.encrypt_image_data(data)?;
//!
//! // Log the operation
//! audit.log_encryption("user123", "image", data.len(), true)?;
//!
//! // Decrypt when needed
//! let decrypted = encryption.decrypt_image_data(&encrypted)?;
//! # Ok(())
//! # }
//! ```
// Re-export main types for convenience
pub use ;
pub use ;