buddy.core.mac
Message Authentication Code algorithms.
hash
(hash input engine-or-options)Generate hmac digest for arbitrary input data, a secret key and hash algorithm.
If algorithm is not supplied, sha256 will be used as default value.
IEngine
protocol
members
-end
(-end _)Generates the mac
-reset
(-reset _)Reset engine state
-update
(-update _ input offset length)Update the engine state.
IMac
protocol
members
-hash
(-hash _ engine)Generate the auth message code
-verify
(-verify _ sig engine)Verify the auth message code
verify
(verify input signature engine-or-options)Verify hmac for artbitrary input and signature.