[#EVP_PKEY_asn1_set_security_bits]
= EVP&lowbar;PKEY&lowbar;asn1&lowbar;set&lowbar;security&lowbar;bits
:mrdocs:

Set the security&hyphen;bits callback on a custom EVP&lowbar;PKEY&lowbar;ASN1&lowbar;METHOD&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
EVP&lowbar;PKEY&lowbar;asn1&lowbar;set&lowbar;security&lowbar;bits(
    xref:EVP_PKEY_ASN1_METHOD.adoc[EVP&lowbar;PKEY&lowbar;ASN1&lowbar;METHOD]* ameth,
    int(* pkey&lowbar;security&lowbar;bits)(xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ameth*
| ASN&period;1 method being constructed&period;
| *pkey&lowbar;security&lowbar;bits*
| Callback returning an estimate of security strength in bits&period;
|===


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