pub struct P256HybridSigningKey { /* private fields */ }Expand description
A hybrid device signing key whose classical half is a hardware-held P-256 key and whose
ML-DSA-65 half is software-sealed. The P-256 analogue of
HardwareBackedSigner.
Implementations§
Source§impl P256HybridSigningKey
impl P256HybridSigningKey
Sourcepub fn enroll(
hardware: Arc<dyn HardwareSigner>,
key_alias: String,
ml_seed: &[u8; 32],
) -> Result<Self, HardwareSignerError>
pub fn enroll( hardware: Arc<dyn HardwareSigner>, key_alias: String, ml_seed: &[u8; 32], ) -> Result<Self, HardwareSignerError>
Enroll a P-256 hardware key under key_alias and compose it with the software ML-DSA-65
half derived from ml_seed (the ξ half of the sealed DSK seed). Reads the element’s
P-256 public key and builds the published hybrid verifying key from it plus the software
ML-DSA-65 public key.
Trait Implementations§
Source§impl Signer for P256HybridSigningKey
impl Signer for P256HybridSigningKey
Source§fn sign(&self, msg: &[u8]) -> Result<HybridSignature, CryptoError>
fn sign(&self, msg: &[u8]) -> Result<HybridSignature, CryptoError>
Sign
msg, producing both signature halves (Ed25519 ‖ ML-DSA-65). Read moreSource§fn verifying_key(&self) -> HybridVerifyingKey
fn verifying_key(&self) -> HybridVerifyingKey
The hybrid public key both halves of
sign verify against.Auto Trait Implementations§
impl !RefUnwindSafe for P256HybridSigningKey
impl !UnwindSafe for P256HybridSigningKey
impl Freeze for P256HybridSigningKey
impl Send for P256HybridSigningKey
impl Sync for P256HybridSigningKey
impl Unpin for P256HybridSigningKey
impl UnsafeUnpin for P256HybridSigningKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more