Align default for both features with default features

This commit is contained in:
Dirkjan Ochtman 2024-07-16 10:18:48 +02:00
parent 8e7871cbba
commit 5f78c2a6cb
1 changed files with 4 additions and 4 deletions

View File

@ -727,9 +727,9 @@ where
}
mod crypto {
#[cfg(feature = "aws-lc-rs")]
#[cfg(all(feature = "aws-lc-rs", not(feature = "ring")))]
pub(crate) use aws_lc_rs as ring_like;
#[cfg(all(feature = "ring", not(feature = "aws-lc-rs")))]
#[cfg(feature = "ring")]
pub(crate) use ring as ring_like;
pub(crate) use ring_like::digest::{digest, Digest, SHA256};
@ -739,7 +739,7 @@ mod crypto {
pub(crate) use ring_like::signature::{KeyPair, Signature};
pub(crate) use ring_like::{hmac, pkcs8};
#[cfg(feature = "aws-lc-rs")]
#[cfg(all(feature = "aws-lc-rs", not(feature = "ring")))]
pub(crate) fn p256_key_pair_from_pkcs8(
pkcs8: &[u8],
_: &SystemRandom,
@ -747,7 +747,7 @@ mod crypto {
EcdsaKeyPair::from_pkcs8(&ECDSA_P256_SHA256_FIXED_SIGNING, pkcs8)
}
#[cfg(all(feature = "ring", not(feature = "aws-lc-rs")))]
#[cfg(feature = "ring")]
pub(crate) fn p256_key_pair_from_pkcs8(
pkcs8: &[u8],
rng: &SystemRandom,