Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
aws_lc_rs
as crypto backend (#201)
Starting from [0.22.0, `rustls`](https://github.com/rustls/rustls/releases/tag/v%2F0.22.0), ecosystem has started supporting [`aws-lc-rs`](https://github.com/aws/aws-lc-rs) as crypto back-end. This latter replaces crypto functionalities provided by `ring`. The main reason behind this is to provide [FIPS](https://en.wikipedia.org/wiki/FIPS_140-2) compliance in the future via `aws-lc`: > Optional support for cryptography from [aws-lc-rs](https://github.com/aws/aws-lc-rs). Once the certification process completes , we will support FIPS mode using aws-lc-rs. --- This PR is implementing the [same](https://github.com/rustls/rustls/blob/4d1b762b5328a1714862ba73ec72d5522fe0c049/rustls/Cargo.toml#L19) supporting mechanism. In short: * if cfg(feature = "ring") -> ring (this will be the default) * if cfg(feature = "aws-lc-rc") -> aws-lc-rs * if both -> ~compile_error!~ EDIT: ring * if none -> compile_error!
- Loading branch information