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
resolve-cipher-engine
(resolve-cipher-engine engine)
Given dynamic type engine, try resolve it to valid engine instance. By default accepts keywords and functions.
verify
(verify input signature engine-or-options)
Verify hmac for artbitrary input and signature.