Skip to content

🐛 Fix types in pbkdf2 #592

@boorad

Description

@boorad

What's happening?

The tests for pbkdf2 are littered with as number or as HashAlgorithm. Investigate if we have deviated from the Node API.

Reproducible Code

crypto.pbkdf2(
      // @ts-ignore
      passphrase,
      salt,
      iterations,
      keylen,
      digest,
      (err, derived) => {
        if (err) {
          reject(err);
        } else {
          //@ts-ignore
          resolve(derived);
        }
      }
    );

Relevant log output

n/a

Device

sim

QuickCrypto Version

1.0.0-beta.11

Can you reproduce this issue in the QuickCrypto Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions