verify
Description:
[ Version ( since = "0.3" ) ]
public bool verify (Cookie cookie, ChecksumType checksum_type, uint8[] key, out string? value)
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.
Parameters:
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 |
Returns:
true if the cookie is signed by the secret |
Namespace: VSGI.CookieUtils
Package: vsgi-0.3