64 releases

✓ Uses Rust 2018 edition

new 0.14.1 Jan 15, 2019
0.14.0-alpha3 Dec 30, 2018
0.13.5 Nov 16, 2018
0.13.2 Jul 13, 2018
0.6.0-alpha Nov 15, 2016

#10 in Cryptography

Download history 9516/week @ 2018-10-25 12546/week @ 2018-11-01 13403/week @ 2018-11-08 14438/week @ 2018-11-15 15352/week @ 2018-11-22 13049/week @ 2018-11-29 15427/week @ 2018-12-06 19624/week @ 2018-12-13 16095/week @ 2018-12-20 11017/week @ 2018-12-27 12272/week @ 2019-01-03 17866/week @ 2019-01-10 19447/week @ 2019-01-17

63,348 downloads per month
Used in 844 crates (139 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 4.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
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