This PR reverts #275, and addresses #274 in an alternative way, namely by explicitly returning an empty ArrayBuffer for PBKDF2 when length=0 (as RFC 8018 does not allow dkLen=0).
Additionally, explicitly return an ArrayBuffer in all cases (the algorithm registrations already stated this, but the operations did not).
Fixes #370.
This PR reverts #275, and addresses #274 in an alternative way, namely by explicitly returning an empty
ArrayBuffer
for PBKDF2 whenlength=0
(as RFC 8018 does not allowdkLen=0
).Additionally, explicitly return an
ArrayBuffer
in all cases (the algorithm registrations already stated this, but the operations did not).Preview | Diff