74 releases

✓ Uses Rust 2018 edition

new 0.15.0 Jul 14, 2019
0.14.6 Feb 8, 2019
0.14.0-alpha3 Dec 30, 2018
0.13.5 Nov 16, 2018
0.6.0-alpha Nov 15, 2016

#55 in Cryptography

Download history 27796/week @ 2019-03-31 30132/week @ 2019-04-07 27039/week @ 2019-04-14 23710/week @ 2019-04-21 23204/week @ 2019-04-28 24440/week @ 2019-05-05 28845/week @ 2019-05-12 28388/week @ 2019-05-19 26595/week @ 2019-05-26 33167/week @ 2019-06-02 33685/week @ 2019-06-09 34345/week @ 2019-06-16 32683/week @ 2019-06-23 27942/week @ 2019-06-30 28422/week @ 2019-07-07

122,338 downloads per month
Used in 1,072 crates (189 directly)

Custom license

5.5MB
178K SLoC

Assembly 125K SLoC // 0.0% comments Perl 38K SLoC // 0.1% comments Rust 12K SLoC // 0.3% comments C 2.5K SLoC // 0.2% comments Python 327 SLoC // 0.2% comments

See https://github.com/briansmith/ring.


lib.rs:

Safe, fast, small crypto using Rust with BoringSSL's cryptography primitives.

git clone

Feature Flags

Feature Description
alloc (default) Enable features that require use of the heap, RSA in particular.
dev_urandom_fallback (default) This is only applicable to Linux. On Linux, by default, ring::rand::SystemRandom will fall back to reading from /dev/urandom if the getrandom() syscall isn't supported at runtime. When the dev_urandom_fallback feature is disabled, such fallbacks will not occur. See the documentation for rand::SystemRandom for more details.
std (default) Enable features that use libstd, in particular `std::error::Error` integration.

Dependencies