From e9ccc481b2d8181cc7af37279117d77b4d1bcf28 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 24 Jul 2025 08:53:35 -0400 Subject: [PATCH 1/4] Add step to reject raw x25519 keys that are not 256 bits --- spec/Overview.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/Overview.html b/spec/Overview.html index 7b7f68a..c7c44a5 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -11775,6 +11775,14 @@
Import Key
{{SyntaxError}}.

+
  • +

    + If the [= length in bits =] of the data + represented by |keyData| is not 256 + then [= exception/throw =] a + {{DataError}}. +

    +
  • Let |algorithm| be a new {{KeyAlgorithm}} object. From cf79bd66e50171fc9e5109f9bc1eafb9db4f1895 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 24 Jul 2025 10:05:55 -0400 Subject: [PATCH 2/4] Replicate changes to ed25519 raw key import --- spec/Overview.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/Overview.html b/spec/Overview.html index c7c44a5..69de8f5 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -10931,6 +10931,14 @@

    Import Key
    {{SyntaxError}}.

  • +
  • +

    + If the [= length in bits =] of the data + represented by |keyData| is not 256 + then [= exception/throw =] a + {{DataError}}. +

    +
  • Let |algorithm| be a new {{KeyAlgorithm}} object. From e82ac1b3680cdf6af07d1b466ad76262331c08da Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 30 Jul 2025 08:14:46 -0400 Subject: [PATCH 3/4] Update spec/Overview.html Co-authored-by: Daniel Huigens --- spec/Overview.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/Overview.html b/spec/Overview.html index 69de8f5..2831d2c 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -11785,9 +11785,8 @@

    Import Key
  • - If the [= length in bits =] of the data - represented by |keyData| is not 256 - then [= exception/throw =] a + If the [= length in bits =] of |keyData| + is not 256, then [= exception/throw =] a {{DataError}}.

  • From 71733067b59cd99eeb623ba2351198359148b557 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 30 Jul 2025 08:14:53 -0400 Subject: [PATCH 4/4] Update spec/Overview.html Co-authored-by: Daniel Huigens --- spec/Overview.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/Overview.html b/spec/Overview.html index 2831d2c..a1b66e4 100644 --- a/spec/Overview.html +++ b/spec/Overview.html @@ -10933,9 +10933,8 @@
    Import Key
  • - If the [= length in bits =] of the data - represented by |keyData| is not 256 - then [= exception/throw =] a + If the [= length in bits =] of |keyData| + is not 256 then [= exception/throw =] a {{DataError}}.

  • @@ -11786,7 +11785,7 @@
    Import Key
  • If the [= length in bits =] of |keyData| - is not 256, then [= exception/throw =] a + is not 256 then [= exception/throw =] a {{DataError}}.