libressl-EVP_rc43
Evp rc4 stream cipher
Usage
Crypto Library (libcrypto, -lcrypto)
#include <openssl/evp.h>
const EVP_CIPHER *
EVP_rc4(void);
const EVP_CIPHER *
EVP_rc4_40(void);
const EVP_CIPHER *
EVP_rc4_hmac_md5(void);
Overview
These functions provide the RC4 stream cipher in the evp(3) framework. It is a variable key length cipher.
EVP_rc4() uses a default key length of 128 bits.
EVP_rc4_40() uses a key length of 40 bits instead. This function is deprecated. Use EVP_rc4() and EVP_CIPHER_CTX_set_key_length(3) instead.
EVP_rc4_hmac_md5() provides authenticated encryption with the RC4 stream cipher with MD5 as HMAC. This function is not intended for usage outside of TLS and requires calling of some undocumented control functions. It does not conform to the EVP AEAD interface.
Return values
These functions return an EVP_CIPHER structure that provides the implementation of the symmetric cipher.