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
45
46
47
48
49
50
51
52
//! # FluxEncrypt Async
//!
//! Async/await support for the FluxEncrypt encryption SDK, providing non-blocking
//! encryption and decryption operations suitable for high-concurrency applications.
//!
//! ## Features
//!
//! - **Async Encryption/Decryption**: Non-blocking hybrid encryption operations
//! - **Streaming Support**: Process large files asynchronously without blocking
//! - **Concurrent Processing**: Handle multiple operations simultaneously
//! - **Tokio Integration**: Full compatibility with the Tokio async runtime
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use fluxencrypt_async::{AsyncHybridCipher, Config};
//! use fluxencrypt::keys::KeyPair;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Generate a new key pair
//! let keypair = KeyPair::generate(2048)?;
//!
//! // Create async cipher
//! let cipher = AsyncHybridCipher::new(Config::default());
//!
//! // Encrypt data asynchronously
//! let plaintext = b"Hello, async FluxEncrypt!";
//! let ciphertext = cipher.encrypt_async(&keypair.public_key(), plaintext).await?;
//!
//! // Decrypt data asynchronously
//! let decrypted = cipher.decrypt_async(&keypair.private_key(), &ciphertext).await?;
//! assert_eq!(plaintext, &decrypted[..]);
//!
//! Ok(())
//! }
//! ```
// Re-export commonly used types
pub use crateAsyncHybridCipher;
pub use Config;
/// Current version of the FluxEncrypt Async library
pub const VERSION: &str = env!;