#block-cipher #data-block #tdes

no-std des

DES and Triple DES (3DES, TDES) block ciphers implementation

14 releases (9 breaking)

0.9.0-pre.0 Mar 8, 2024
0.8.1 Feb 17, 2022
0.7.0 Apr 29, 2021
0.6.0 Oct 16, 2020
0.0.1 Apr 24, 2016

#1982 in Cryptography

Download history 34957/week @ 2023-12-20 31036/week @ 2023-12-27 67769/week @ 2024-01-03 58370/week @ 2024-01-10 72531/week @ 2024-01-17 71315/week @ 2024-01-24 68957/week @ 2024-01-31 73962/week @ 2024-02-07 72771/week @ 2024-02-14 72487/week @ 2024-02-21 76107/week @ 2024-02-28 78901/week @ 2024-03-06 70206/week @ 2024-03-13 78111/week @ 2024-03-20 70964/week @ 2024-03-27 63309/week @ 2024-04-03

297,609 downloads per month
Used in 152 crates (30 directly)

MIT/Apache

39KB
462 lines

RustCrypto: Data Encryption Standard (DES) and 3DES

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status HAZMAT

Pure Rust implementation of the DES cipher, including triple DES (3DES).

Documentation

⚠️ Security Warning: Hazmat!

This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to verify ciphertext integrity), which can lead to serious vulnerabilities if used incorrectly!

No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.

USE AT YOUR OWN RISK!

Minimum Supported Rust Version

Rust 1.65 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~355KB