whiteflag-js
    Preparing search index...

    Function encryptMessage

    • Function

      Encrypts a binary encoded message encryptMessage

      Parameters

      • message: BinaryBuffer

        a binary buffer with the binary encoded 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 encrypted message