Skip to content

Bindings and interface for the Blowfish cipher implementation taken verbatim from Mbed TLS 2.x library.

License

Apache-2.0, GPL-2.0 licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
GPL-2.0
LICENSE-GPL
Notifications You must be signed in to change notification settings

alexobolev/blowfish-mbed

Repository files navigation

blowfish-mbed

Build status License: Apache-2.0 License: GPLv2+

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;

    • crates.io (sys) docs.rs (sys)
  • blowfish-mbed-c - idiomatic Rust interface over the C bindings above.

    • crates.io (c) docs.rs (c)

Backlog

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.

License

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.

About

Bindings and interface for the Blowfish cipher implementation taken verbatim from Mbed TLS 2.x library.

Topics

Resources

License

Apache-2.0, GPL-2.0 licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
GPL-2.0
LICENSE-GPL

Stars

Watchers

Forks