Skip to content

Commit

Permalink
Throw on truncation in the ECDH derive bits operation
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Sep 19, 2024
1 parent 0eed687 commit 5bdfd07
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions spec/Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -8808,24 +8808,17 @@ <h4>Operations</h4>
</li>
<li>
<dl class="switch">
<dt>If |length| is null:</dt>
<dd>Return |secret|</dd>
<dt>Otherwise:</dt>
<dt>
If |length| is not null, and not equal to the length of |secret| in bits:
</dt>
<dd>
<dl class="switch">
<dt>
If the length of |secret| in bits is less than
|length|:
</dt>
<dd>
[= exception/throw =] an
{{OperationError}}.
</dd>
<dt>Otherwise:</dt>
<dd>
Return an [= octet string containing =] the first |length| bits of |secret|.
</dd>
</dl>
[= exception/throw =] an {{OperationError}}.
</dd>
<dt>
Otherwise:
</dt>
<dd>
Return |secret|.
</dd>
</dl>
</li>
Expand Down

0 comments on commit 5bdfd07

Please sign in to comment.