Type Alias esp_idf_svc::sys::esp_rc4_skip_t
source · pub type esp_rc4_skip_t = Option<unsafe extern "C" fn(_: *const u8, _: u32, _: u32, _: *mut u8, _: u32) -> i32>;
Expand description
@brief XOR RC4 stream callback function to given data with skip-stream-start
@param key RC4 key @param keylen RC4 key length @param skip number of bytes to skip from the beginning of the RC4 stream @param data data to be XOR’ed with RC4 stream @param data_len buf length Returns: 0 on success, -1 on failure
Generate RC4 pseudo random stream for the given key, skip beginning of the stream, and XOR the end result with the data buffer to perform RC4 encryption/decryption.
Aliased Type§
enum esp_rc4_skip_t {
None,
Some(unsafe extern "C" fn(_: *const u8, _: u32, _: u32, _: *mut u8, _: u32) -> i32),
}