**CryptGuard Lite** is a compact and intuitive library that wraps the `crypt_guard` crate, making its core functionalities easily accessible and manageable. This library provides essential cryptographic operations, including key generation, encryption, decryption, and digital signing, with support for multiple key variants such as Falcon and Dilithium. Its streamlined interface ensures a straightforward integration into your projects, offering robust security mechanisms with minimal complexity.
- ---
Add the following to your `Cargo.toml`:
```toml
[dependencies]
crypt_guard = "1.2.10"
cryptguard_minimal = "0.1.0"
Usage
Key Variants
The library supports two key variants:
Signing
Creating a Signature
use KDFSignature;
use crateFalcon;
let key_size = 512;
let = keypair.unwrap;
let mut guard = signature;
let data = b"your message".to_vec;
let signature = guard.signed_data.unwrap;
Verifying a Signature
let mut guard = signature;
let verified = guard.verify.unwrap;
assert!;
Encryption
AES Encryption
let key_size = 1024;
let passphrase = "password".to_string;
let = keypair.unwrap;
let mut guard = cryptography;
let data = b"your data".to_vec;
let = guard.aencrypt.unwrap;
let mut guard = cryptography;
let decrypted_data = guard.adecrypt.unwrap;
assert_eq!;
XChaCha20 Encryption
let key_size = 1024;
let passphrase = "password".to_string;
let = keypair.unwrap;
let mut guard = cryptography;
let data = b"your data".to_vec;
let = guard.xencrypt.unwrap;
let mut guard = cryptography;
let decrypted_data = guard.xdecrypt.unwrap;
assert_eq!;
License
This project is licensed under the MIT License. See the LICENSE file for details.
### Additional Notes
- The library depends on `crypt_guard` version `1.2.10`.
- Make sure to handle errors appropriately when integrating the library into your projects.
For more detailed usage examples and API documentation, please refer to the official `crypt_guard` crate documentation and the library's source code.
Happy coding!