No matching definitions.

session/hmac

src/session/hmac.tur

HMAC-SHA256 over the session ID for signed cookies.

Since: v0.2.0

defn

hmac-sign

(hmac-sign [key : cstr msg : cstr] :)

base64url(HMAC-SHA256(key, msg)).

keysigning key bytes (as a string)
msgmessage to authenticate (the session ID)

:cstr -- base64url MAC, caller-owned.

Since: v0.2.0

defn

ct-eq?

(ct-eq? [a : cstr b : cstr] :)

constant-time string equality.

Since: v0.2.0