[#ASN1_object_size]
= ASN1&lowbar;object&lowbar;size
:mrdocs:

Compute the total DER size of a tagged ASN&period;1 value given its content length&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;object&lowbar;size(
    int constructed,
    int length,
    int tag);
----

== Return Value

Total number of octets for tag, length, and content, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *constructed*
| Non&hyphen;zero if the encoding uses a constructed form&period;
| *length*
| Number of content octets (or &hyphen;1 for indefinite length)&period;
| *tag*
| Tag number to encode (universal&sol;application&sol;context&hyphen;specific as used by callers)&period;
|===


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