[#CAST_set_key]
= CAST&lowbar;set&lowbar;key
:mrdocs:

Expand a CAST user key into a CAST&lowbar;KEY schedule (deprecated&semi; prefer EVP)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
CAST&lowbar;set&lowbar;key(
    xref:CAST_KEY.adoc[CAST&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*
| Destination expanded CAST key schedule&period;
| *len*
| Length of `data` in bytes (typically up to CAST&lowbar;KEY&lowbar;LENGTH)&period;
| *data*
| Raw CAST key bytes&period;
|===


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