Skip to content

Commit 846e363

Browse files
Throw for KMAC key generation with length=0 (#24)
SHA: 69904bb Reason: push, by twiss Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0f0c5ba commit 846e363

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

index.html

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@
284284
"id": "draft-ietf-lamps-dilithium-certificates"
285285
}
286286
},
287-
"publishISODate": "2025-09-09T00:00:00.000Z",
288-
"generatedSubtitle": "Draft Community Group Report 09 September 2025"
287+
"publishISODate": "2025-09-11T00:00:00.000Z",
288+
"generatedSubtitle": "Draft Community Group Report 11 September 2025"
289289
}</script>
290290
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2021/cg-draft"></head>
291291

@@ -294,7 +294,7 @@
294294
<h1 id="title" class="title">Modern Algorithms in the Web Cryptography API</h1>
295295
<p id="w3c-state">
296296
<a href="https://www.w3.org/standards/types#reports">Draft Community Group Report</a>
297-
<time class="dt-published" datetime="2025-09-09">09 September 2025</time>
297+
<time class="dt-published" datetime="2025-09-11">11 September 2025</time>
298298
</p>
299299
<dl>
300300

@@ -6519,9 +6519,17 @@ <h1 id="title" class="title">Modern Algorithms in the Web Cryptography API</h1>
65196519
<var>normalizedAlgorithm</var> is present:
65206520
</dt>
65216521
<dd>
6522-
Let <var>length</var> be equal to the
6523-
<a data-link-type="idl" href="#dfn-KmacKeyGenParams-length" class="internalDFN" id="ref-for-dfn-KmacKeyGenParams-length-3"><code>length</code></a>
6524-
member of <var>normalizedAlgorithm</var>.
6522+
<ol>
6523+
<li>
6524+
Let <var>length</var> be equal to the
6525+
<a data-link-type="idl" href="#dfn-KmacKeyGenParams-length" class="internalDFN" id="ref-for-dfn-KmacKeyGenParams-length-3"><code>length</code></a>
6526+
member of <var>normalizedAlgorithm</var>.
6527+
</li>
6528+
<li>
6529+
If <var>length</var> is zero, then <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw">throw</a> an
6530+
<a data-link-type="exception" data-lt="OperationError" href="https://webidl.spec.whatwg.org/#operationerror"><code>OperationError</code></a>.
6531+
</li>
6532+
</ol>
65256533
</dd>
65266534
<dt>
65276535
Otherwise, if the <a data-link-type="dict-member" href="https://www.w3.org/TR/webcrypto-2/#dom-algorithm-name"><code>name</code></a> member of

0 commit comments

Comments
 (0)