26 releases

0.10.7 Oct 5, 2023
0.10.6 Jul 18, 2023
0.10.3 May 20, 2023
0.10.2 Mar 27, 2023
0.1.2 Jul 27, 2018

#274 in Cryptography

Download history 564/week @ 2023-12-14 249/week @ 2023-12-21 257/week @ 2023-12-28 552/week @ 2024-01-04 1096/week @ 2024-01-11 1112/week @ 2024-01-18 935/week @ 2024-01-25 687/week @ 2024-02-01 1091/week @ 2024-02-08 1121/week @ 2024-02-15 881/week @ 2024-02-22 1191/week @ 2024-02-29 1090/week @ 2024-03-07 1599/week @ 2024-03-14 1222/week @ 2024-03-21 758/week @ 2024-03-28

4,845 downloads per month
Used in 13 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.58.0, unless you enable support for no_std builds, in which case Rust 1.64.0 is required.

Botan Versions Supported

This crate requires Botan 2.13.0 or higher.

Features

The following features are supported:

  • no-std: Enable a no-std build. This requires Rust 1.64.0 or higher, as well as alloc support
  • 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.

Dependencies