|
2 | 2 | //! Module containing the definition of the private key container
|
3 | 3 | //!
|
4 | 4 |
|
5 |
| -use crate::{Components, OID, Signature, VerifyingKey}; |
| 5 | +use crate::{Components, Signature, VerifyingKey, OID}; |
6 | 6 | use core::{
|
7 | 7 | cmp::min,
|
8 | 8 | fmt::{self, Debug},
|
9 | 9 | };
|
10 | 10 | use crypto_bigint::{
|
11 |
| - BoxedUint, NonZero, Odd, |
12 | 11 | modular::{BoxedMontyForm, BoxedMontyParams},
|
| 12 | + BoxedUint, NonZero, Odd, |
13 | 13 | };
|
14 |
| -use digest::{Digest, FixedOutputReset, core_api::BlockSizeUser}; |
| 14 | +use digest::{core_api::BlockSizeUser, Digest, FixedOutputReset}; |
15 | 15 | use pkcs8::{
|
16 |
| - AlgorithmIdentifierRef, EncodePrivateKey, PrivateKeyInfoRef, SecretDocument, |
17 | 16 | der::{
|
18 |
| - AnyRef, Decode, Encode, |
19 | 17 | asn1::{OctetStringRef, UintRef},
|
| 18 | + AnyRef, Decode, Encode, |
20 | 19 | },
|
| 20 | + AlgorithmIdentifierRef, EncodePrivateKey, PrivateKeyInfoRef, SecretDocument, |
21 | 21 | };
|
| 22 | +#[cfg(feature = "hazmat")] |
| 23 | +use signature::rand_core::CryptoRng; |
22 | 24 | use signature::{
|
23 |
| - DigestSigner, RandomizedDigestSigner, Signer, |
24 | 25 | hazmat::{PrehashSigner, RandomizedPrehashSigner},
|
25 |
| - rand_core::{CryptoRng, TryCryptoRng}, |
| 26 | + rand_core::TryCryptoRng, |
| 27 | + DigestSigner, RandomizedDigestSigner, Signer, |
26 | 28 | };
|
27 | 29 | use zeroize::{Zeroize, Zeroizing};
|
28 | 30 |
|
|
0 commit comments