mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-13 02:16:52 +02:00
After base64url-decoding the x and d fields during JWK import, verify the decoded byte length matches the expected key size for the curve (32 for Ed25519/X25519, 57 for Ed448, 56 for X448). A truncated value does not "contain the public/private key" as required by RFC 8037 Section 2.