From 2ad99b56b81bc1856a3992686f0ab6ce7ee78539 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 7 Feb 2023 12:44:47 +0100 Subject: [PATCH] Be more precise about HMAC-BLAKE2s-256 and the key length --- schemas/sturdy.prs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/schemas/sturdy.prs b/schemas/sturdy.prs index 6d36735..0481cda 100644 --- a/schemas/sturdy.prs +++ b/schemas/sturdy.prs @@ -4,8 +4,9 @@ embeddedType EntityRef.Cap . ; The sequence of Caveats is run RIGHT-TO-LEFT. ; That is, the newest Caveats are at the right. ; -; Let f = HMAC-BLAKE2s, e = canonical machine-oriented serialization of some preserves value, -; and k = the original secret key for the ref. +; Let f(k,d) = HMAC-BLAKE2s-256(k,d)[0..16), +; e = canonical machine-oriented serialization of some preserves value, and +; k = the original secret key for the ref. ; ; The `sig` is then f(f(f(f(k, e(oid)), ...), Caveat), ...). ;