[#DES_key_sched]
= DES&lowbar;key&lowbar;sched
:mrdocs:

Expand a DES key into a key schedule (alias of DES&lowbar;set&lowbar;key&semi; deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
DES&lowbar;key&lowbar;sched(
    xref:const_DES_cblock.adoc[const&lowbar;DES&lowbar;cblock]* key,
    xref:DES_key_schedule.adoc[DES&lowbar;key&lowbar;schedule]* schedule);
----

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

0 on success, &hyphen;1 on parity error, or &hyphen;2 if `key` is a weak key&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Eight&hyphen;byte DES key (parity checked when DES&lowbar;check&lowbar;key is enabled)&period;
| *schedule*
| Destination expanded key schedule&period;
|===


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