[#DES_ecb3_encrypt]
= DES&lowbar;ecb3&lowbar;encrypt
:mrdocs:

Encrypt or decrypt one 8&hyphen;byte block with triple&hyphen;DES EDE in ECB mode (deprecated&semi; prefer EVP)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
DES&lowbar;ecb3&lowbar;encrypt(
    xref:const_DES_cblock.adoc[const&lowbar;DES&lowbar;cblock]* input,
    xref:DES_cblock.adoc[DES&lowbar;cblock]* output,
    xref:DES_key_schedule.adoc[DES&lowbar;key&lowbar;schedule]* ks1,
    xref:DES_key_schedule.adoc[DES&lowbar;key&lowbar;schedule]* ks2,
    xref:DES_key_schedule.adoc[DES&lowbar;key&lowbar;schedule]* ks3,
    int enc);
----

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

[cols="1,4"]
|===
| Name| Description
| *input*
| 8&hyphen;byte input block&period;
| *output*
| 8&hyphen;byte output block (may equal `input)&period;`
| *ks1*
| First DES key schedule (encrypt or decrypt stage)&period;
| *ks2*
| Second DES key schedule (middle stage)&period;
| *ks3*
| Third DES key schedule (final stage)&period;
| *enc*
| DES&lowbar;ENCRYPT to encrypt, or DES&lowbar;DECRYPT to decrypt&period;
|===


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