Skip to main content

IdentitySigner

Trait IdentitySigner 

Source
pub trait IdentitySigner {
    // Required methods
    fn public_key(&self) -> PublicKey<'_>;
    fn sign_into(
        &self,
        payload: &[u8],
        out: &mut [u8; 3309],
    ) -> Result<(), KernelError>;
}
Expand description

Signing interface for any ML-DSA-65 identity: in-memory keys, HSM, TPM, or enclave.

Required Methods§

Source

fn public_key(&self) -> PublicKey<'_>

Returns the public key corresponding to this signer’s signing key.

Source

fn sign_into( &self, payload: &[u8], out: &mut [u8; 3309], ) -> Result<(), KernelError>

Signs payload and writes the SIG_SIZE-byte signature into out.

Returns SigningFailed if the underlying signing operation fails.

Implementors§