Crypto Lib
    Preparing search index...

    Function pae

    • Pre-Authentication Encoding (PAE).

      Encodes multiple byte-string pieces into a single unambiguous byte string by prefixing each piece with its LE64 length and the count.

      Parameters

      • ...pieces: Uint8Array<ArrayBufferLike>[]

        Byte arrays to encode.

      Returns Uint8Array

      The PAE-encoded byte array.

      const encoded = pae(new Uint8Array([1]), new Uint8Array([2, 3]));