Commit0af00919Recorded4 May 2026Repositorysigil-crypto

test: fix rfc8291-ua-priv test fixture (Group D)

Message

The rfc8291-ua-priv fixture decoded to a 16-byte value, which is the length of an HMAC auth_secret — not a P-256 private scalar. The ECDH primitive correctly rejected the input as wrong-length.

Per RFC 8291 § 5 the UA private key is q1dXpw3UpT5VOmucfv6ih07Aems3njxI-JWgLcM94 (32 bytes). Replaced the fixture; ECDH now succeeds and matches in both directions.

Changed
 test/test-crypto.sgl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Diff
test/test-crypto.sglmodified
@@ -810,7 +810,8 @@
810
;; very high probability of correctness.
811
812
(define (rfc8291-ua-priv)
813
(base64url-decode "q4yBd6S0FsYXqdvYJgcWGw"))
+813
;; RFC 8291 § 5 — user-agent private scalar (32 bytes).
+814
(base64url-decode "q1dXpw3UpT5VOmu_cf_v6ih07Aems3njxI-JWgLcM94"))
815
816
(define (rfc8291-ua-pub)
817
(base64url-decode