diff options
author | Nikhil Benesch <nikhil.benesch@gmail.com> | 2020-12-10 20:46:58 -0500 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-10-05 11:46:38 +0200 |
commit | 341fdd29a9863e793c560e2a7207989c4f61d772 (patch) | |
tree | 38ffda8be4d3ebce675e6561a3a619882934495e /openpgp/build.rs | |
parent | aa21e2404d9502eeea84ff39da03a85c971ea2d3 (diff) |
openpgp: Add a RustCrypto backend.
- This adds a cryptographic backend based on the RustCrypto crates.
The backend is marked as experimental, as the RustCrypto crates'
authors state that they have not been audited and may not perform
computations in constant time. Nevertheless, it may be useful in
certain environments, e.g. WebAssembly.
- The backend implements RSA, EdDSA and ECDH over Curve25519, IDEA,
3DES, CAST5, Blowfish, AES, Twofish, EAX, MD5, SHA1, RipeMD160, and
the SHA2 family.
- Notably missing are DSA, ElGamal, and ECDSA and ECDH over the NIST
curves.
- See #333.
Diffstat (limited to 'openpgp/build.rs')
-rw-r--r-- | openpgp/build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/build.rs b/openpgp/build.rs index 210483e5..aabf157d 100644 --- a/openpgp/build.rs +++ b/openpgp/build.rs @@ -62,6 +62,12 @@ fn crypto_backends_sanity_check() { production_ready: true, constant_time: true, }), + (cfg!(feature = "crypto-rust"), + Backend { + name: "RustCrypto", + production_ready: false, + constant_time: false, + }), ].into_iter().filter_map(|(selected, backend)| { if selected { Some(backend) } else { None } }).collect::<Vec<_>>(); |