Structs§
- KeyId
- A unique key identifier for a private key on a NetHSM.
- Private
KeyImport - The key data required when importing a secret key
- Signing
KeySetup - The validated setup for a cryptographic signing key
Enums§
- Cryptographic
KeyContext - The cryptographic context in which a key is used
- Error
- Private
KeyData 🔒 - 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 ofKeyMechanism
s is compatible with aSignatureType
- 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 ofKeyMechanism
s - pad 🔒
- Creates a new vector with bytes in
buf
, left-padded with zeros so that the result is exactlylen
big. - tls_
key_ type_ matches_ length - Ensures that a
TlsKeyType
is compatible with an optional key length