[#EVP_CIPHER_meth_new]
= EVP&lowbar;CIPHER&lowbar;meth&lowbar;new
:mrdocs:

Allocate a custom EVP&lowbar;CIPHER method object (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:EVP_CIPHER-07.adoc[EVP&lowbar;CIPHER]*
EVP&lowbar;CIPHER&lowbar;meth&lowbar;new(
    int cipher&lowbar;type,
    int block&lowbar;size,
    int key&lowbar;len);
----

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

New mutable EVP&lowbar;CIPHER, or NULL on failure&semi; free with EVP&lowbar;CIPHER&lowbar;meth&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cipher&lowbar;type*
| NID identifying the cipher algorithm&period;
| *block&lowbar;size*
| Block size in bytes (1 for stream ciphers)&period;
| *key&lowbar;len*
| Default key length in bytes&period;
|===


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