mac
Message authentication code function.
Return
the message authentication code.
Parameters
algorithm
must be one of Algorithm.HMAC_SHA256, Algorithm.HMAC_SHA384, Algorithm.HMAC_SHA512.
key
the secret key.
message
the message to authenticate.
Throws
if the given algorithm is not supported.
Message authentication code function.
Return
the message authentication code.
Parameters
algorithm
must be one of Algorithm.HMAC_SHA256, Algorithm.HMAC_SHA384, Algorithm.HMAC_SHA512.
key
the secret key.
message
the message to authenticate.
Throws
if the given algorithm is not supported.