Expand description
Cryptographic key handling.
Structs§
- Decrypt
Mode Iter - An iterator over the variants of DecryptMode
- Encrypt
Mode Iter - An iterator over the variants of EncryptMode
- KeyFormat
Iter - An iterator over the variants of KeyFormat
- KeyMechanism
Iter - An iterator over the variants of KeyMechanism
- KeyType
Iter - An iterator over the variants of KeyType
- Signature
Type Iter - An iterator over the variants of SignatureType
Enums§
- Cryptographic
KeyContext - The cryptographic context in which a key is used.
- Decrypt
Mode - A mode for decrypting a message
- Encrypt
Mode - 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
- Signature
Type - 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 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