[#RC4_set_key]
= RC4&lowbar;set&lowbar;key
:mrdocs:

Initialize an RC4&lowbar;KEY from a variable&hyphen;length key (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&lowbar;set&lowbar;key(
    xref:RC4_KEY.adoc[RC4&lowbar;KEY]* key,
    int len,
    unsigned char const* data);
----

[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 to initialize&period;
| *len*
| Length of `data` in bytes&period;
| *data*
| Key material used to set up the RC4 permutation&period;
|===


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