SIGN IN SIGN UP

topdown: Add built-in HMAC compare function

Add crypto.hmac.equal built-in function to safelly comparing hashes generated by MD5, SHA-1, SHA-256 and SHA-512 hashing algorithms.

The built-in function is a wrapped for the function Equal of package crypto/hmac.

It's useful when you need to write a policy that requires to check hash signature for request body.

Signed-off-by: Sandokan D. Arantes <sandokandias@gmail.com>
S
Sandokan D. Arantes committed
17319072955048ab06ab00a0280724db859bc2b1
Parent: 6a1af0f
Committed by Ashutosh Narkar <anarkar4387@gmail.com> on 4/21/2023, 5:24:07 PM