[#PEM_SignInit]
= PEM&lowbar;SignInit
:mrdocs:

Initialize an EVP&lowbar;MD&lowbar;CTX for signing with digest `type` (used by PEM&lowbar;Sign&ast;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PEM&lowbar;SignInit(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    xref:EVP_MD.adoc[EVP&lowbar;MD]* type);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest context to initialize for signing&period;
| *type*
| Message digest algorithm (for example EVP&lowbar;sha256())&period;
|===


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