pub trait PrivateSigningKey<JS, JT, JU, K>
where JS: JwsSigningAlgorithm<JT>, JT: JsonWebKeyType, JU: JsonWebKeyUse, K: JsonWebKey<JS, JT, JU>,
{ // Required methods fn sign( &self, signature_alg: &JS, message: &[u8] ) -> Result<Vec<u8>, SigningError>; fn as_verification_key(&self) -> K; }
Expand description

Private or symmetric key for signing.

Required Methods§

source

fn sign( &self, signature_alg: &JS, message: &[u8] ) -> Result<Vec<u8>, SigningError>

Signs the given message using the given signature algorithm.

source

fn as_verification_key(&self) -> K

Converts this key to a JSON Web Key that can be used for verifying signatures.

Implementors§