Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDKF and PBKDF2 return an empty string when length is zero #49048

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 8, 2024

  1. HDKF and PBKDF2 return an empty string when length is zero

    The PR#380 [1] changed the PBKDF2 deriveBits operation to allow
    zero length and introduced an additional step to return an empty
    string in that case. It also reversted the PR#275 [2] so that
    HKDF also handles the zero length in the same way.
    
    This PR updates the tests cases affecting this 2 algorithms on
    the cases where zero was passed in the length parameter.
    
    [1] w3c/webcrypto#380
    [2] w3c/webcrypto#275
    javifernandez committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    194773e View commit details
    Browse the repository at this point in the history