pub struct SoftwareSigner { /* private fields */ }Expand description
A software HardwareSigner: the fallback for devices with no secure element.
Implementations§
Source§impl SoftwareSigner
impl SoftwareSigner
Sourcepub fn from_seed(seed: [u8; 32]) -> Self
pub fn from_seed(seed: [u8; 32]) -> Self
Build a signer from a 32-byte seed. The caller must seal seed (e.g. under the
master key, like the ML-DSA-65 ξ seed) so the device key survives restarts.
Trait Implementations§
Source§impl Clone for SoftwareSigner
impl Clone for SoftwareSigner
Source§fn clone(&self) -> SoftwareSigner
fn clone(&self) -> SoftwareSigner
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 HardwareSigner for SoftwareSigner
impl HardwareSigner for SoftwareSigner
Source§fn enroll(&self, key_alias: String) -> Result<Vec<u8>, HardwareSignerError>
fn enroll(&self, key_alias: String) -> Result<Vec<u8>, HardwareSignerError>
Generate (or bind to) the hardware Ed25519 keypair for
key_alias, returning its
32-byte public key. Idempotent per alias.Source§fn classical_public_key(
&self,
key_alias: String,
) -> Result<Vec<u8>, HardwareSignerError>
fn classical_public_key( &self, key_alias: String, ) -> Result<Vec<u8>, HardwareSignerError>
The 32-byte Ed25519 public key for an already-enrolled
key_alias.Source§fn sign_classical(
&self,
key_alias: String,
msg: Vec<u8>,
) -> Result<Vec<u8>, HardwareSignerError>
fn sign_classical( &self, key_alias: String, msg: Vec<u8>, ) -> Result<Vec<u8>, HardwareSignerError>
Produce a 64-byte Ed25519 signature over
msg with the hardware key for key_alias.Source§fn assert_non_exportable(
&self,
_key_alias: String,
) -> Result<(), HardwareSignerError>
fn assert_non_exportable( &self, _key_alias: String, ) -> Result<(), HardwareSignerError>
Non-exportability assertion: a conforming element MUST refuse to reveal the private
bytes, returning
HardwareSignerError::Exportable if they can be read. This drives the
per-platform smoke test (keys.md Validation).Auto Trait Implementations§
impl Freeze for SoftwareSigner
impl RefUnwindSafe for SoftwareSigner
impl Send for SoftwareSigner
impl Sync for SoftwareSigner
impl Unpin for SoftwareSigner
impl UnsafeUnpin for SoftwareSigner
impl UnwindSafe for SoftwareSigner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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