whiteflag-js
    Preparing search index...

    Function decrypt

    • Function

      Decrypts a message based on the specified encryption method decrypt

      Parameters

      • message: Uint8Array<ArrayBuffer>

        the message to be decyrpted

      • method: WfCryptoMethod

        the Whiteflag encryption method

      • key: CryptoKey

        the encryption key

      • Optionaliv: Uint8Array<ArrayBuffer>

        the initialisation vector, if required for the method

      • version: v1 = WfVersion.v1

        the Whiteflag protocol version

      Returns Promise<Uint8Array<ArrayBufferLike>>

      v1-draft.7

      5.2.4 Message Encryption