Verify a signed cookie from VSGI.CookieUtils.sign.
The signature is verified in constant time, more specifically a number of comparisons equal to length of the checksum.
cookie |
cookie which signature will be verified |
checksum_type |
hash algorithm used to compute the HMAC |
key |
secret used to sign the cookie's value |
value |
cookie's value extracted from its signature if the verification succeeds, null otherwise |
true if the cookie is signed by the secret |