SymmetricKey
Symmetric encryption key. Can only be used for the specified algorithm.
Inheritors
Types
Self-Contained encryption key, i.e. a single byte array is sufficient
Encryption key with dedicated MAC key. Used for non-authenticated ciphers that use an external MAC function to bolt on AEAD capabilities, such as SymmetricEncryptionAlgorithm.AES.GCM
Properties
This is meant for storing additional properties, which may be relevant for certain use cases. For example, Json Web Keys or COSE keys may define an arbitrary key IDs. This is not meant for Algorithm parameters! If an algorithm needs parameters, the implementing classes should be extended
The encryption key bytes, if present.
The dedicated MAC key bytes, if present.
The actual encryption key bytes
Functions
Use to smart cast
Use to smart cast
Use to smart cast
Use to smart cast