#crypto

no-std botan

Rust wrapper for Botan cryptography library

20 releases

0.10.1 Mar 8, 2023
0.9.2 Feb 24, 2023
0.9.0 Dec 9, 2022
0.8.1 Mar 14, 2021
0.1.2 Jul 27, 2018

#202 in Cryptography

Download history 170/week @ 2022-11-28 174/week @ 2022-12-05 243/week @ 2022-12-12 193/week @ 2022-12-19 144/week @ 2022-12-26 150/week @ 2023-01-02 150/week @ 2023-01-09 138/week @ 2023-01-16 208/week @ 2023-01-23 260/week @ 2023-01-30 231/week @ 2023-02-06 230/week @ 2023-02-13 212/week @ 2023-02-20 176/week @ 2023-02-27 204/week @ 2023-03-06 228/week @ 2023-03-13

872 downloads per month
Used in 3 crates

MIT license

160KB
3.5K SLoC

botan-rs

Build status crates.io docs.rs

This crate wraps the C API exposed by the Botan cryptography library. The current version requires Botan 2.8.0 or higher and Rust 1.58.0 or higher.

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: Link against (the currently unreleased) Botan 3.x rather than the default Botan 2.x

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.

Dependencies

~125KB