Skip to content

Commit

Permalink
fixup! add aws_lc_rs support to use as crypto backend
Browse files Browse the repository at this point in the history
  • Loading branch information
BiagioFesta committed Dec 13, 2023
1 parent f0f2ca5 commit da6e01c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rcgen/src/ring_like.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#[cfg(feature = "ring")]
pub use ring::*;
pub(crate) use ring::*;

#[cfg(all(not(feature = "ring"), feature = "aws_lc_rs"))]
pub use aws_lc_rs::*;
pub(crate) use aws_lc_rs::*;

use crate::{error::ExternalError, Error};

Expand All @@ -16,7 +16,7 @@ use crate::{error::ExternalError, Error};
/// "explicit" encoding of the curve. The `parameters` field of the
/// `ECPrivateKey`, if present, must be the same named curve that is in the
/// algorithm identifier in the PKCS#8 header.
pub fn ecdsa_from_pkcs8(
pub(crate) fn ecdsa_from_pkcs8(
alg: &'static signature::EcdsaSigningAlgorithm,
pkcs8: &[u8],
_rng: &dyn rand::SecureRandom,
Expand All @@ -36,7 +36,7 @@ pub fn ecdsa_from_pkcs8(
///
/// The modulus length is rounded up to a whole number of bytes if its
/// bit length isn't a multiple of 8.
pub fn rsa_key_pair_public_modulus_len(kp: &signature::RsaKeyPair) -> usize {
pub(crate) fn rsa_key_pair_public_modulus_len(kp: &signature::RsaKeyPair) -> usize {
#[cfg(feature = "ring")]
{
kp.public().modulus_len()
Expand Down

0 comments on commit da6e01c

Please sign in to comment.