diff --git a/src/pkcs1v15/signature.rs b/src/pkcs1v15/signature.rs index a640da32..a07b6468 100644 --- a/src/pkcs1v15/signature.rs +++ b/src/pkcs1v15/signature.rs @@ -1,17 +1,14 @@ -pub use ::signature::{ - hazmat::{PrehashSigner, PrehashVerifier}, - DigestSigner, DigestVerifier, Error, Keypair, RandomizedDigestSigner, RandomizedSigner, Result, - SignatureEncoding, Signer, Verifier, -}; -use spki::{ - der::{asn1::BitString, Result as DerResult}, - SignatureBitStringEncoding, -}; +//! `RSASSA-PKCS1-v1_5` signatures. use crate::algorithms::pad::uint_to_be_pad; +use ::signature::SignatureEncoding; use alloc::{boxed::Box, string::ToString}; use core::fmt::{Debug, Display, Formatter, LowerHex, UpperHex}; use num_bigint::BigUint; +use spki::{ + der::{asn1::BitString, Result as DerResult}, + SignatureBitStringEncoding, +}; /// `RSASSA-PKCS1-v1_5` signatures as described in [RFC8017 § 8.2]. /// diff --git a/src/pss/signature.rs b/src/pss/signature.rs index fa47d6d9..031e2201 100644 --- a/src/pss/signature.rs +++ b/src/pss/signature.rs @@ -1,19 +1,16 @@ -pub use ::signature::{ - hazmat::{PrehashSigner, PrehashVerifier}, - DigestSigner, DigestVerifier, Error, Keypair, RandomizedDigestSigner, RandomizedSigner, Result, - SignatureEncoding, Signer, Verifier, -}; -use spki::{ - der::{asn1::BitString, Result as DerResult}, - SignatureBitStringEncoding, -}; +//! `RSASSA-PSS` signatures. use crate::algorithms::pad::uint_to_be_pad; +use ::signature::SignatureEncoding; use alloc::{boxed::Box, string::ToString}; use core::fmt::{Debug, Display, Formatter, LowerHex, UpperHex}; use num_bigint::BigUint; +use spki::{ + der::{asn1::BitString, Result as DerResult}, + SignatureBitStringEncoding, +}; -/// RSASSA-PSS signatures as described in [RFC8017 § 8.1]. +/// `RSASSA-PSS` signatures as described in [RFC8017 § 8.1]. /// /// [RFC8017 § 8.1]: https://datatracker.ietf.org/doc/html/rfc8017#section-8.1 #[derive(Clone, PartialEq, Eq)]