27 releases

0.11.0 Aug 28, 2024
0.10.7 Oct 5, 2023
0.10.6 Jul 18, 2023
0.10.2 Mar 27, 2023
0.1.2 Jul 27, 2018

#391 in Cryptography

Download history 676/week @ 2024-08-20 1152/week @ 2024-08-27 1428/week @ 2024-09-03 1233/week @ 2024-09-10 1412/week @ 2024-09-17 1519/week @ 2024-09-24 1131/week @ 2024-10-01 1244/week @ 2024-10-08 1507/week @ 2024-10-15 1318/week @ 2024-10-22 1335/week @ 2024-10-29 799/week @ 2024-11-05 1602/week @ 2024-11-12 1353/week @ 2024-11-19 1023/week @ 2024-11-26 1103/week @ 2024-12-03

5,242 downloads per month
Used in 16 crates (4 directly)

MIT license

180KB
4K SLoC

botan-rs

Build status crates.io docs.rs

This crate wraps the C API exposed by the Botan cryptography library.

Currently the crate exposes ciphers, hashes, MACs, KDFs, password based key derivation (PBKDF2, Scrypt, Argon2, etc), bcrypt password hashes, random number generators, X.509 certificates, format preserving encryption, HOTP/TOTP, NIST key wrapping, multiprecision integers, and the usual public key algorithms (RSA, ECDSA, ECDH, DH, ...)

PRs and comments/issues happily accepted.

MSRV

The Minimum Supported Rust Version of this crate is Rust 1.64.0.

Botan Versions Supported

This crate requires Botan 2.13.0 or higher. However the latest available version of Botan3 is highly recomended for best security and performance.

Features

The following features are supported:

  • std (enabled by default): Enable using std library features. If disabled then the crates are no_std, however support for alloc is still required.
  • vendored: Build a copy of the C++ library directly, without relying on a system installed version.
  • botan3: Enable support for using APIs added in Botan 3. This enables several new features, and more efficient operation. This feature is implicitly enabled if you use vendored.
  • static: Enable static linking for a non-vendored, externally provided Botan dependency.
  • pkg-config: Enable finding a non-vendored, externally provided Botan with pkg-config. Can be used in combination with static.

Dependencies