pub trait SigningKey {
// Required methods
fn sign(
&self,
algorithm: SignatureAlgorithm,
canonical_signed_info: &[u8],
) -> Result<Vec<u8>, SigningKeyError>;
fn public_key_info(&self) -> Result<SigningPublicKeyInfo, SigningKeyError>;
}Expand description
Private key abstraction used by SignContext.
Required Methods§
Sourcefn sign(
&self,
algorithm: SignatureAlgorithm,
canonical_signed_info: &[u8],
) -> Result<Vec<u8>, SigningKeyError>
fn sign( &self, algorithm: SignatureAlgorithm, canonical_signed_info: &[u8], ) -> Result<Vec<u8>, SigningKeyError>
Sign canonicalized <SignedInfo> bytes for the declared XMLDSig method.
Sourcefn public_key_info(&self) -> Result<SigningPublicKeyInfo, SigningKeyError>
fn public_key_info(&self) -> Result<SigningPublicKeyInfo, SigningKeyError>
Return structured public key material corresponding to this signing key.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".