Class: Toybox.Cryptography.CipherBasedMessageAuthenticationCode
- Inherits:
-
Toybox.Lang.Object
Overview
Cipher-Based Message Authentication Code (CMAC) object.
A CipherBasedMessageAuthenticationCode is an object that can be used to compute a message authentication code using the CMAC algorithm.
See Also:
Instance Method Summary collapse
-
digest() as Lang.ByteArray
Return the digest of the authentication code.
-
initialize(options as { :algorithm as Cryptography.CipherAlgorithm, :key as Lang.ByteArray })
Constructor.
-
update(message as Lang.ByteArray) as Void
Continue the computation of the CMAC by consuming the next chunk of data.
Instance Method Details
digest() as Lang.ByteArray
Return the digest of the authentication code.
The state of the object is reset and can be used to compute a new authentication code with the same options.
initialize(options as { :algorithm as Cryptography.CipherAlgorithm, :key as Lang.ByteArray })
Constructor
update(message as Lang.ByteArray) as Void
Continue the computation of the CMAC by consuming the next chunk of data.
Repeated calls are equivalent to a single call with the concatenation of all the arguments.