docs.rs failed to build rgp-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
rgp-0.3.4
RGP
Reasonably Good Privacy
Usage
let = generate_exchange_keys;
let = generate_fingerprint;
let mut pub_keys = vec!;
// 8mb
let content = vec!;
// 20,000 recipients
for _ in 0..20_000
let mut encrypted_content =
encrypt.unwrap;
let encrypted_content =
extract_content_for_key_position
.unwrap;
let decrypted_content = decrypt
.unwrap;
assert_eq!;
Format
- nonce = 24 bytes
- one-time public key = 32 bytes
- keys count (2-9 bytes)
- int size = 1 byte (1 for u8 | 2 for u16 | 4 for u32 | 8 for u64)
- big endian int = 1-8 bytes
- encrypted keys = pub_keys.len() * 32 bytes
- inner signature = 64 bytes (encrypted along with the content to preserve deniability)
- encrypted content = content.len()
- Poly1305 MAC = 16 bytes
Security
THIS CODE HAS NOT BEEN AUDITED OR REVIEWED. USE AT YOUR OWN RISK.