Crates.io | blowfish-mbed-c |
lib.rs | blowfish-mbed-c |
version | 0.1.1 |
source | src |
created_at | 2024-01-26 22:15:27.353982 |
updated_at | 2024-02-13 13:48:45.314315 |
description | Rusty interface for the deprecated mbedtls implementation of Blowfish cipher. |
homepage | |
repository | https://github.com/alexobolev/blowfish-mbed |
max_upload_size | |
id | 1115957 |
size | 28,409 |
This repository provides two crates for encryption and decryption of data using the Blowfish cipher. While it is no longer recommended for usage in modern software, this cipher can still be found in legacy code.
The crates in this repository are:
blowfish-mbed-sys
- direct bindings to mbedtls's cipher implementation;
blowfish-mbed-c
- idiomatic Rust interface over the C bindings above.
The blowfish-mbed-c
crate only wraps ECB and CBC modes of operation yet.
It would be a good idea to also provide a safe interface for the CFB and CTR modes
for completeness' sake, since mbedtls
already implements those.
The implementation found in this repository is lifted almost directly from the
mbedtls suite. To be more specific, from its
2.28
branch, as Blowfish was removed from the library starting from 3.x versions.
Thus, licensing for this repository follows that of the original implementation.
Both crates are dual-licensed under Apache-2.0
and GPL-2.0-or-later
.