whiteflag-js
    Preparing search index...

    Function decryptMessage

    • Function

      Decrypts an encrypted binary message decryptMessage

      Parameters

      • message: BinaryBuffer

        a binary buffer with the encrypted message

      • method: WfCryptoMethod

        the Whiteflag encryption method

      • ikm: Uint8Array

        the input key material to derive the encryption key

      • address: Uint8Array

        the binary encoded originator address

      • Optionaliv: Uint8Array<ArrayBufferLike>

        the initialisation vector, if required for the encryption method

      • version: v1 = WfVersion.v1

        the Whiteflag protocol version

      Returns Promise<BinaryBuffer>

      the decrypted binary encoded message