[#RC4]
= RC4
:mrdocs:

Encrypt or decrypt `len` bytes with RC4 (deprecated&semi; prefer EVP&lowbar;CIPHER)&period;

== Synopsis

Declared in `&lt;openssl&sol;rc4&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
RC4(
    xref:RC4_KEY.adoc[RC4&lowbar;KEY]* key,
    size&lowbar;t len,
    unsigned char const* indata,
    unsigned char* outdata);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| RC4 key schedule previously set with RC4&lowbar;set&lowbar;key()&semi; updated in place&period;
| *len*
| Number of bytes to process&period;
| *indata*
| Input plaintext or ciphertext&period;
| *outdata*
| Output buffer of at least `len` bytes (may alias `indata)&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
