Class: Toybox.Cryptography.HashBasedMessageAuthenticationCode
- Inherits:
-
Toybox.Lang.Object
Overview
Hash-Based Message Authentication Code (HMAC) object.
A HashBasedMessageAuthenticationCode is an object that can be used to compute a message authentication code using the HMAC algorithm.
See Also:
Instance Method Summary collapse
-
digest() as Lang.ByteArray
Return the digest of the authentication code.
-
initialize(options as { :algorithm as Cryptography.HashAlgorithm, :key as Lang.ByteArray })
Constructor.
-
update(message as Lang.ByteArray) as Void
Continue computation of the HMAC 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.HashAlgorithm, :key as Lang.ByteArray })
Constructor
update(message as Lang.ByteArray) as Void
Continue computation of the HMAC by consuming the next chunk of data.
Repeated calls are equivalent to a single call with the concatenation of all the arguments.