21 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.16.9 Aug 30, 2019
0.16.5 Jul 26, 2019
0.14.6 Feb 8, 2019
0.14.0-alpha3 Dec 30, 2018
0.6.0-alpha Nov 15, 2016

#15 in Cryptography

Download history 28785/week @ 2019-05-17 26414/week @ 2019-05-24 31751/week @ 2019-05-31 33135/week @ 2019-06-07 34388/week @ 2019-06-14 33903/week @ 2019-06-21 29198/week @ 2019-06-28 27550/week @ 2019-07-05 30154/week @ 2019-07-12 31825/week @ 2019-07-19 30981/week @ 2019-07-26 30689/week @ 2019-08-02 33322/week @ 2019-08-09 33717/week @ 2019-08-16 31568/week @ 2019-08-23

136,187 downloads per month
Used in 1,135 crates (211 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 271 SLoC // 0.3% comments

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


lib.rs:

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

git clone https://github.com/briansmith/ring

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 Enable features that use libstd, in particular `std::error::Error` integration.

Dependencies