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
PBKDF2 allows zero length and returns and empty string
This CL adapts our implementation to the spec change described in the
PR#380 [1]. Instead of trowing an OperationError exception, we allow now
zero as value for the 'length' parameter.
Given that the deriveBits operation must result in an empty string, this
change early returns to avoid the unnecessary computation of the bits
derivation.
The specific WTP defined for this case are modified in this CL as well,
so no additional test cases are needed.
[1] w3c/webcrypto#380
Bug: 376493194
Change-Id: If685c349a0a9d134a8e8f7c902e8aac342945226
0 commit comments