ring/rsa/
keypair_components.rs
1use super::PublicKeyComponents;
2
3#[derive(Clone, Copy)]
5pub struct KeyPairComponents<Public, Private = Public> {
6 pub public_key: PublicKeyComponents<Public>,
8
9 pub d: Private,
11
12 pub p: Private,
14
15 pub q: Private,
17
18 pub dP: Private,
20
21 pub dQ: Private,
23
24 pub qInv: Private,
26}
27
28impl<Public, Private> core::fmt::Debug for KeyPairComponents<Public, Private>
29where
30 PublicKeyComponents<Public>: core::fmt::Debug,
31{
32 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error> {
33 f.debug_struct("KeyPairComponents")
35 .field("public_key", &self.public_key)
36 .finish()
37 }
38}