This PR fixes a small behavior difference with upstream RC4: RC4Cipher.XORKeyStream panics if the output buffer is smaller than the input buffer, while CNG doesn't complain and just does nothing. Also added an extensive test suite so we are fully compatible with upstream RC4.
This PR fixes a small behavior difference with upstream RC4:
RC4Cipher.XORKeyStream
panics if the output buffer is smaller than the input buffer, while CNG doesn't complain and just does nothing. Also added an extensive test suite so we are fully compatible with upstream RC4.