Skip to main content

Crate des

Crate des 

Source
Expand description

Pure Rust implementation of the Data Encryption Standard (DES), including Triple DES (TDES, 3DES) block ciphers.

§⚠️ Security Warning: Hazmat!

This crate implements only the low-level block cipher function, and is intended for use for implementing higher-level constructions only. It is NOT intended for direct use in applications.

USE AT YOUR OWN RISK!

Re-exports§

pub use cipher;

Structs§

Des
Data Encryption Standard (DES) block cipher.
TdesEde2
Triple DES (3DES) block cipher.
TdesEde3
Triple DES (3DES) block cipher.
TdesEee2
Triple DES (3DES) block cipher.
TdesEee3
Triple DES (3DES) block cipher.
WeakKeyError
The error type returned when a key is found to be weak.

Functions§

weak_key_test
Checks whether key contains one of the known weak DES keys.