nethsm_signature_type

Function nethsm_signature_type 

Source
pub(crate) fn nethsm_signature_type(
    key_type: KeyType,
) -> Result<SignatureType, Error>
Expand description

Returns a SignatureType for a [KeyType].

Reflects the specific capabilities of a NetHSM backend and only returns a SignatureType for a supported key_type.

ยงErrors

Returns an error if the key type is unsupported. This includes [KeyType::EcP224] and [KeyType::Generic].