switch ring to aws-lc-rs
This commit is contained in:
parent
7e40c71852
commit
e25612b73f
3 changed files with 180 additions and 10 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue