@me2em/crypto
    Preparing search index...

    Function hkdfWithInfo

    • String-info convenience wrapper around hkdf.

      Encodes info as UTF-8 before passing to hkdf.

      Parameters

      • ikm: Uint8Array

        Input key material.

      • salt: Uint8Array

        Salt (may be empty).

      • info: string

        UTF-8 string used as the info/context parameter.

      • length: number

        Output bytes (max 8160).

      Returns Promise<Uint8Array>

      The derived key material.

      On the same conditions as hkdf.

      const sessionKey = await hkdfWithInfo(masterSecret, salt,
      'me2em/crypto/v1/session-key', 32);