Utility crates for cryptographic operations at Proton. Not intended or vetted for general usage outside Proton.
- proton-crypto: Core Proton cryptography library: generic Proton-specific OpenPGP and SRP API. Backends: GopenPGP (
gopgp) or pure Rust (rustpgpvia proton-rpgp). - proton-crypto-account: Proton account cryptography (user keys, address keys, etc.) and key management; re-exports
proton-crypto. - proton-rpgp: Pure Rust OpenPGP wrapper on top of rpgp (used as optional backend in
proton-crypto). - gopenpgp-sys: Rust bindings to GopenPGP.
- proton-srp: Pure Rust implementation of Proton’s Secure Remote Password (SRP) protocol.
- proton-crypto-subtle: Low-level primitives: AEAD, HKDF.
- proton-device-verification: Device verification for clients.
cargo buildThe default proton-crypto backend is GopenPGP (gopgp), which requires Go to build gopenpgp-sys. For a pure Rust build, use:
cargo build --no-default-features -p proton-crypto -p proton-crypto-account --features rustpgpWe are not currently accepting external contributions via this GitHub repository. This open-source mirror is provided for transparency and reference.
MIT. See LICENSE.
To report a vulnerability, see SECURITY.md.