pub struct InsecureRc4Key { /* private fields */ }
Expand description
INSECURE: The RC4 cipher.
§Security
RC4 is considered insecure and should only be used for compatibility with legacy applications.
Implementations§
Source§impl InsecureRc4Key
impl InsecureRc4Key
Sourcepub fn insecure_new(key: &[u8]) -> Self
👎Deprecated: RC4 is considered insecure
pub fn insecure_new(key: &[u8]) -> Self
INSECURE: Constructs an RC4 cipher from the given key data.
The data used to construct an RC4 cipher can be of arbitrary length
(within the bounds of u32
; see below). This includes zero-length keys,
for which care should be taken to avoid.
§Security
RC4 is considered insecure and should only be used for compatibility with legacy applications.
§Aborts
This function aborts if the length of the key
slice exceeds
u32::MAX
.
Sourcepub fn insecure_xor_stream(&mut self, input: &[u8], output: &mut [u8])
👎Deprecated: RC4 is considered insecure
pub fn insecure_xor_stream(&mut self, input: &[u8], output: &mut [u8])
INSECURE: Encrypts or decrypts a byte slice into another byte slice.
RC4 is a symmetrical streaming cipher; there is no distinction between encryption and decryption.
The minimum of the input and output slice lengths determines how much
data is read from input
and written to output
.
§Security
RC4 is considered insecure and should only be used for compatibility with legacy applications.