Module key

Source

Structs§

KeyId
A unique key identifier for a private key on a NetHSM.
PrivateKeyImport
The key data required when importing a secret key
SigningKeySetup
The validated setup for a cryptographic signing key

Enums§

CryptographicKeyContext
The cryptographic context in which a key is used
Error
PrivateKeyData 🔒
The data for private key import

Constants§

MIN_RSA_BIT_LENGTH
The minimum bit length for an RSA key

Functions§

key_type_and_mechanisms_match_signature_type
Ensures that a KeyType and a list of KeyMechanisms is compatible with a SignatureType
key_type_matches_length
Ensures that a KeyType is compatible with an optional key length
key_type_matches_mechanisms
Ensures that a KeyType is compatible with a list of KeyMechanisms
pad 🔒
Creates a new vector with bytes in buf, left-padded with zeros so that the result is exactly len big.
tls_key_type_matches_length
Ensures that a TlsKeyType is compatible with an optional key length