HMAC
AEAD-capabilities bolted onto AES-CBC
Properties
Specifies how the inputs to the MAC are to be encoded/processed
Specifies how the inputs to the MAC are to be encoded/processed
Indicates if this algorithm requires a nonce.
The preferred length pf the MAC key. Can be overridden during key generation and is unconstrained.
Creates a SealedBoxBuilder matching this algorithm's characteristics:
Functions
Instantiates a new CBC.HMAC instance with
Use to smart-cast this algorithm
Use to smart-cast this algorithm
Use to smart-cast this algorithm
Use to smart-cast this algorithm
Use to smart-cast this algorithm
Creates a SymmetricKey from the specified secretKey. Returns KmmResult.failure in case the provided bytes don't match SymmetricEncryptionAlgorithm.keySize
Creates a SymmetricKey from the specified encryptionKey and macKey. Returns KmmResult.failure in case the provided bytes don't match SymmetricEncryptionAlgorithm.keySize or the specified macKey is empty.
Generates a fresh random key for this algorithm.
Generates a fresh random key for this algorithm. macKeyLength can be specified to override preferredMacKeyLength.
Generates a new random nonce matching the Nonce size of this algorithm. You typically don't want to use this, but have your nonces auto-generated during the encryption process
Use to smart-cast this algorithm