13 stable releases

2.1.0 Sep 16, 2022
2.0.0 Dec 16, 2021
1.1.6 Apr 16, 2021
1.1.4 Mar 15, 2021
1.0.2 Nov 12, 2020

#56 in Cryptography

Download history 3727/week @ 2022-10-05 4316/week @ 2022-10-12 4776/week @ 2022-10-19 3522/week @ 2022-10-26 3821/week @ 2022-11-02 4272/week @ 2022-11-09 5146/week @ 2022-11-16 5671/week @ 2022-11-23 7867/week @ 2022-11-30 8657/week @ 2022-12-07 7421/week @ 2022-12-14 6110/week @ 2022-12-21 6063/week @ 2022-12-28 10100/week @ 2023-01-04 8622/week @ 2023-01-11 7496/week @ 2023-01-18

33,236 downloads per month
Used in 9 crates (7 directly)

Apache-2.0

14MB
434K SLoC

GNU Style Assembly 191K SLoC // 0.0% comments C++ 91K SLoC // 0.2% comments C 76K SLoC // 0.2% comments Assembly 62K SLoC // 0.0% comments Rust 14K SLoC // 0.0% comments

boring

crates.io

BoringSSL bindings for the Rust programming language and TLS adapters for tokio and hyper built on top of it.

Documentation.

Release Support

By default, the crate statically links with the latest BoringSSL master branch.

Support for pre-built binaries

While this crate can build BoringSSL on its own, you may want to provide pre-built binaries instead. To do so, specify the environment variable BORING_BSSL_PATH with the path to the binaries.

You can also provide specific headers by setting BORING_BSSL_INCLUDE_PATH.

Notes: The crate will look for headers in the $BORING_BSSL_INCLUDE_PATH/openssl/ folder, make sure to place your headers there.

Warning: When providing a different version of BoringSSL make sure to use a compatible one, the crate relies on the presence of certain functions.

Building with a FIPS-validated module

Only BoringCrypto module version ae223d6138807a13006342edfeef32e813246b39, as certified with certificate 3678 is supported by this crate. Support is enabled by this crate's fips feature.

boring-sys comes with a test that FIPS is enabled/disabled depending on the feature flag. You can run it as follows:

$ cargo test --features fips fips::is_enabled

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed under the terms of both the Apache License, Version 2.0 and the MIT license without any additional terms or conditions.

Accolades

The project is based on a fork of rust-openssl.

Dependencies