Skip to content

Can't handle optional PBKDF2-params's keyLength  #618

@emmansun

Description

@emmansun

When i tried to call KEYUTIL.getKeyFromEncryptedPKCS8PEM, it's failed due to there are keyLength in the PBKDF2-params. Per check the implementation, found the code get prf from position 2 directly:

var prf = aryval(pASNKDF, "2.seq.0.oid", "hmacWithSHA1");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions