firecloud-crypto
Encryption and key management for the FireCloud distributed storage system.
Overview
Provides cryptographic primitives for secure file sharing and messaging:
- Key generation: Ed25519 identity keys, X25519 encryption keys
- Encryption: ChaCha20-Poly1305 AEAD cipher
- Key derivation: Argon2 password hashing
- Key exchange: X25519 Diffie-Hellman
Usage
use ;
// Generate identity keypair
let keypair = generate;
// Encrypt data
let ciphertext = encrypt_data?;
Features
- Memory-safe key handling with
zeroize - Modern cryptographic algorithms
- Random key generation with
rand
Security
This crate uses well-audited cryptographic libraries:
chacha20poly1305for authenticated encryptioned25519-dalekfor signaturesx25519-dalekfor key exchangeblake3for hashingargon2for password derivation
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.