#crypto #cryptography #rand #ECC #RSA

sys no-std gnir

Automated mirror of ring - Safe, fast, small crypto using Rust

48 releases (8 breaking)

✓ Uses Rust 2018 edition

0.14.6 Feb 9, 2019
0.13.5 Feb 3, 2019

#141 in Cryptography

Download history 5/week @ 2019-01-26 377/week @ 2019-02-02

128 downloads per month

Custom license

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.


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.


  • build build.rs
  • build cc 1.0