BoringSSL CryptoProvider for Reqsign.
The provider implements every Reqsign crypto operation with BoringSSL's safe, one-shot APIs. MD5 is available only when BoringSSL is not running in FIPS mode; a FIPS build returns ConfigInvalid for MD5 instead of computing a digest that the security policy excludes.
This crate is native-only and excluded from the Reqsign workspace, so the main workspace stays pure Rust. Building it requires a C/C++ compiler and CMake.
Bind the provider to one context:
use reqsign_core::Context; use reqsign_crypto_boring::BoringCryptoProvider; let ctx = Context::new().with_crypto(BoringCryptoProvider::new());
Or install it process-wide:
use reqsign_crypto_boring::BoringCryptoProvider; if BoringCryptoProvider::install_default().is_err() { eprintln!("a process-wide crypto provider is already installed"); }
Enable the fips feature to forward to BoringSSL's FIPS build.
See CryptoProvider for the provider contract, resolution order, and error semantics.
Licensed under the Apache License, Version 2.0.