pub struct KeyPairSet {
pub keyset_id: String,
pub classical: Option<ClassicalKeyPair>,
pub pqc: Option<PqcKeyPair>,
pub created_at: Option<DateTime<Utc>>,
pub rotate_after: Option<DateTime<Utc>>,
}Expand description
Combined keyset for hybrid signing/verification.
Matches the design from the MRVB+KMS pack.
Fields§
§keyset_id: String§classical: Option<ClassicalKeyPair>Classical keypair (required for ClassicalOnly and Hybrid modes)
pqc: Option<PqcKeyPair>PQC keypair (required for PqcOnly and Hybrid modes)
created_at: Option<DateTime<Utc>>Creation timestamp
rotate_after: Option<DateTime<Utc>>Rotation timestamp (when this keyset should be rotated)
Implementations§
Source§impl KeyPairSet
impl KeyPairSet
Sourcepub fn supports_mode(&self, mode: MrvbMode) -> bool
pub fn supports_mode(&self, mode: MrvbMode) -> bool
Check if this keyset supports the given signing mode.
Trait Implementations§
Source§impl Clone for KeyPairSet
impl Clone for KeyPairSet
Source§fn clone(&self) -> KeyPairSet
fn clone(&self) -> KeyPairSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyPairSet
impl Debug for KeyPairSet
Source§impl<'de> Deserialize<'de> for KeyPairSet
impl<'de> Deserialize<'de> for KeyPairSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyPairSet
impl RefUnwindSafe for KeyPairSet
impl Send for KeyPairSet
impl Sync for KeyPairSet
impl Unpin for KeyPairSet
impl UnsafeUnpin for KeyPairSet
impl UnwindSafe for KeyPairSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more