Commit d4ffcad
authored
Allow
* Revert "Throw an OperationError in the PBKDF2 and HKDF derive bits operations if length is zero (#275)"
This reverts commit 6438d87.
* Properly handle length=0 in the PBKDF2 derive bits operation
RFC 8018 does not allow passing dkLen=0. Therefore, we explicitly
return an empty ArrayBuffer in that case.
* Explicitly return `ArrayBuffer`s in HKDF and PBKDF2
The algorithm registrations state that they return `ArrayBuffer`s,
but the operations did not.length=0 in HKDF and PBKDF2 derive bits operations (#380)1 parent 85a4826 commit d4ffcad
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13105 | 13105 | | |
13106 | 13106 | | |
13107 | 13107 | | |
13108 | | - | |
| 13108 | + | |
13109 | 13109 | | |
13110 | 13110 | | |
13111 | 13111 | | |
| |||
13160 | 13160 | | |
13161 | 13161 | | |
13162 | 13162 | | |
13163 | | - | |
| 13163 | + | |
| 13164 | + | |
13164 | 13165 | | |
13165 | 13166 | | |
13166 | 13167 | | |
| |||
13324 | 13325 | | |
13325 | 13326 | | |
13326 | 13327 | | |
13327 | | - | |
| 13328 | + | |
13328 | 13329 | | |
13329 | 13330 | | |
13330 | 13331 | | |
| |||
13333 | 13334 | | |
13334 | 13335 | | |
13335 | 13336 | | |
| 13337 | + | |
| 13338 | + | |
| 13339 | + | |
| 13340 | + | |
| 13341 | + | |
| 13342 | + | |
| 13343 | + | |
13336 | 13344 | | |
13337 | 13345 | | |
13338 | 13346 | | |
| |||
13362 | 13370 | | |
13363 | 13371 | | |
13364 | 13372 | | |
13365 | | - | |
| 13373 | + | |
| 13374 | + | |
13366 | 13375 | | |
13367 | 13376 | | |
13368 | 13377 | | |
| |||
0 commit comments