pub trait SignBackend: Backend {
// Required method
fn sign(
&mut self,
key_id: &KeyId,
message: &[u8],
algorithm: SignAlgorithm,
) -> Result<Vec<u8>, BackendError>;
}Expand description
Signing operations.
Required Methods§
Sourcefn sign(
&mut self,
key_id: &KeyId,
message: &[u8],
algorithm: SignAlgorithm,
) -> Result<Vec<u8>, BackendError>
fn sign( &mut self, key_id: &KeyId, message: &[u8], algorithm: SignAlgorithm, ) -> Result<Vec<u8>, BackendError>
Sign message with key_id using algorithm.
Returns raw signature bytes (format depends on algorithm).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".