You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow length=0 in HKDF and PBKDF2 derive bits operations (#380)
* 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.
0 commit comments