switch ring to aws-lc-rs

This commit is contained in:
Igor Katson 2024-08-30 12:30:08 +01:00
parent 7e40c71852
commit e25612b73f
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 180 additions and 10 deletions

View file

@ -13,9 +13,9 @@ readme = "README.md"
[features]
default = ["sha1-crypto-hash"]
sha1-crypto-hash = ["crypto-hash"]
sha1-ring = ["ring"]
sha1-ring = ["aws-lc-rs"]
[dependencies]
assert_cfg = "0.1.0"
crypto-hash = { version = "0.3", optional = true }
ring = { version = "0.17", optional = true }
aws-lc-rs = { version = "*", optional = true }

View file

@ -50,7 +50,7 @@ mod crypto_hash_impl {
mod ring_impl {
use super::ISha1;
use ring::digest::{Context, SHA1_FOR_LEGACY_USE_ONLY as SHA1};
use aws_lc_rs::digest::{Context, SHA1_FOR_LEGACY_USE_ONLY as SHA1};
pub struct Sha1Ring {
ctx: Context,