#crypto

no-std botan

Rust wrapper for Botan cryptography library

15 unstable releases (7 breaking)

0.8.1 Mar 14, 2021
0.8.0 Nov 13, 2020
0.7.0 Sep 27, 2020
0.6.1 Feb 15, 2020
0.1.2 Jul 27, 2018

#268 in Cryptography

Download history 189/week @ 2022-06-06 166/week @ 2022-06-13 158/week @ 2022-06-20 134/week @ 2022-06-27 171/week @ 2022-07-04 209/week @ 2022-07-11 178/week @ 2022-07-18 188/week @ 2022-07-25 162/week @ 2022-08-01 186/week @ 2022-08-08 177/week @ 2022-08-15 178/week @ 2022-08-22 142/week @ 2022-08-29 248/week @ 2022-09-05 149/week @ 2022-09-12 186/week @ 2022-09-19

741 downloads per month
Used in 3 crates

MIT license

140KB
3K 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.43.0 or higher.

The following features are supported:

  • no-std: Enable a no-std build. (Still uses alloc, requires nightly)
  • vendored: Build a copy of the C++ library directly, without relying on a system installed version.

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 various public key algorithms (RSA, ECDSA, ECDH, ...)

PRs and comments/issues happily accepted.

Dependencies

~170KB