whiteflag-js
    Preparing search index...

    Function deriveKey

    • Function

      Derives the encryption key based on the Whiteflag encryption method deriveKey

      Parameters

      • ikm: Uint8Array<ArrayBuffer>

        the raw input key material

      • method: WfCryptoMethod

        the Whiteflag encryption method

      • info: Uint8Array<ArrayBuffer>

        information to bind the key, e.g. the blockchain address of the originator

      • version: v1 = WfVersion.v1

        the Whiteflag protocol version

      Returns Promise<CryptoKey>

      the encryption key

      v1-draft.7

      5.2.3 Encryption Key and Authentication Token Derivation