69 releases

✓ Uses Rust 2018 edition

0.14.6 Feb 8, 2019
0.14.4 Jan 31, 2019
0.14.0-alpha3 Dec 30, 2018
0.13.5 Nov 16, 2018
0.6.0-alpha Nov 15, 2016

#33 in Cryptography

Download history 11500/week @ 2018-12-20 11432/week @ 2018-12-27 17664/week @ 2019-01-03 19986/week @ 2019-01-10 19954/week @ 2019-01-17 19596/week @ 2019-01-24 21060/week @ 2019-01-31 21875/week @ 2019-02-07 21777/week @ 2019-02-14 22158/week @ 2019-02-21 25891/week @ 2019-02-28 26999/week @ 2019-03-07 26636/week @ 2019-03-14 26413/week @ 2019-03-21 26824/week @ 2019-03-28

97,468 downloads per month
Used in 960 crates (165 directly)

Custom license

5.5MB
210K SLoC

Assembly 154K SLoC // 0.0% comments Perl 42K SLoC // 0.1% comments Rust 10K SLoC // 0.3% comments C 4K 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
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.
use_heap (default) Enable features that require use of the heap, RSA in particular.

Dependencies

  • build build.rs
  • build cc 1.0