PKI-Lite - v1.2.1
    Preparing search index...
    • PKCS#12 password-based key derivation (RFC 7292 Appendix B.2).

      Parameters

      • password: Uint8Array<ArrayBuffer>

        Password as BMPString (UTF-16BE) with NUL terminator

      • salt: Uint8Array<ArrayBuffer>

        Salt bytes

      • id: 1 | 2 | 3

        1 = encryption key, 2 = IV, 3 = MAC key

      • iterations: number

        Iteration count

      • n: number

        Number of bytes to produce

      • hash: HashAlgorithm

        Hash algorithm

      Returns Promise<Uint8Array<ArrayBuffer>>