Module base

Source
Expand description

Cryptographic key handling.

Structs§

DecryptModeIter
An iterator over the variants of DecryptMode
EncryptModeIter
An iterator over the variants of EncryptMode
KeyFormatIter
An iterator over the variants of KeyFormat
KeyMechanismIter
An iterator over the variants of KeyMechanism
KeyTypeIter
An iterator over the variants of KeyType
SignatureTypeIter
An iterator over the variants of SignatureType

Enums§

CryptographicKeyContext
The cryptographic context in which a key is used.
DecryptMode
A mode for decrypting a message
EncryptMode
A mode for encrypting a message
KeyFormat
The format of a key
KeyMechanism
A mechanism which can be used with a key
KeyType
The algorithm type of a key
SignatureType
The type of a signature.

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