pub enum MlDsaSignerVariant {
MlDsa44(MlDsaSigner<MlDsa44>),
MlDsa65(MlDsaSigner<MlDsa65>),
MlDsa87(MlDsaSigner<MlDsa87>),
}Expand description
Signer variant that dispatches to the correct ML-DSA parameter set.
Returned by load_ml_dsa_signer_from_pkcs8_der when the parameter set
is auto-detected from the PKCS#8 AlgorithmIdentifier OID.
Variants§
Implementations§
Source§impl MlDsaSignerVariant
impl MlDsaSignerVariant
pub fn algorithm_name(&self) -> &'static str
Sourcepub fn demo(sig_alg: &str) -> Result<Self, String>
pub fn demo(sig_alg: &str) -> Result<Self, String>
Construct a demo signer with a random seed for the given algorithm name.
Sourcepub fn sign_bundle(
&mut self,
ca: &CaIdentity,
snapshot: &StatusSnapshot,
config: &GenerationConfig,
seal_fn: impl FnOnce(&[u8]) -> Result<Vec<u8>>,
responder_cert_der: Option<&[u8]>,
) -> Result<Vec<u8>>
pub fn sign_bundle( &mut self, ca: &CaIdentity, snapshot: &StatusSnapshot, config: &GenerationConfig, seal_fn: impl FnOnce(&[u8]) -> Result<Vec<u8>>, responder_cert_der: Option<&[u8]>, ) -> Result<Vec<u8>>
Produce an ahu bundle, dispatching to the correct monomorphized
produce_bundle instantiation based on the loaded parameter set.
Auto Trait Implementations§
impl Freeze for MlDsaSignerVariant
impl RefUnwindSafe for MlDsaSignerVariant
impl Send for MlDsaSignerVariant
impl Sync for MlDsaSignerVariant
impl Unpin for MlDsaSignerVariant
impl UnsafeUnpin for MlDsaSignerVariant
impl UnwindSafe for MlDsaSignerVariant
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