[#RC2_ecb_encrypt]
= RC2&lowbar;ecb&lowbar;encrypt
:mrdocs:

Encrypt or decrypt one RC2 block in ECB mode (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
RC2&lowbar;ecb&lowbar;encrypt(
    unsigned char const* in,
    unsigned char* out,
    xref:RC2_KEY.adoc[RC2&lowbar;KEY]* key,
    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
| *in*
| 8&hyphen;byte input block&period;
| *out*
| 8&hyphen;byte output block (may equal `in)&period;`
| *key*
| Expanded key from RC2&lowbar;set&lowbar;key()&period;
| *enc*
| RC2&lowbar;ENCRYPT to encrypt, or RC2&lowbar;DECRYPT to decrypt&period;
|===


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