/** * Interleaves a sequence of bytes. When encrypting EO data, bytes are "woven" into each other. *
* Used when encrypting packets and data files. * * @example * {0, 1, 2, 3, 4, 5} → {0, 5, 1, 4, 2, 3} * * @remarks * This is an in-place operation. * * @param data - the data to interleave */ export declare function interleave(data: Uint8Array): void; /** * Deinterleaves a sequence of bytes. This is the reverse of `interleave`.
* Used when decrypting packets and data files. * * @example * {0, 1, 2, 3, 4, 5} → {0, 2, 4, 5, 3, 1} * * @remarks * This is an in-place operation. * * @param data - the data to deinterleave */ export declare function deinterleave(data: Uint8Array): void; /** * Flips the most significant bits of each byte in a sequence of bytes. (Values `0` and `128` are * not flipped.)
* Used when encrypting and decrypting packets. * * @example * {0, 1, 127, 128, 129, 254, 255} → {0, 129, 255, 128, 1, 126, 127} * * @remarks * This is an in-place operation. * * @param data - the data to flip most significant bits on */ export declare function flipMsb(data: Uint8Array): void; /** * Swaps the order of contiguous bytes in a sequence of bytes that are divisible by a given * multiple value.
* Used when encrypting and decrypting packets and data files. * * @example * multiple = 3 * {10, 21, 27} → {10, 27, 21} * * @remarks * This is an in-place operation. * * @param data - the data to swap bytes in * @param multiple - the multiple value */ export declare function swapMultiples(data: Uint8Array, multiple: number): void; //# sourceMappingURL=encryption-utils.d.ts.map