RC4.process

void process(const(ubyte)[] input, ubyte[] output)

Processes input data by XORing it with the keystream.

This operation is symmetric: processing plaintext produces ciphertext, and processing ciphertext produces plaintext.

The Pseudo-Random Generation Algorithm (PRGA) generates keystream bytes that are XORed with the input.

Parameters

inputInput data to process.
outputOutput buffer (must be at least input.length bytes).

Throws

CryptoException if the output buffer is too short.