1fmt_asn1dertag(3)          Library Functions Manual          fmt_asn1dertag(3)
2
3
4

NAME

6       fmt_asn1dertag - encode unsigned integer like ASN.1 DER tag
7

SYNTAX

9       #include <fmt.h>
10
11       size_t fmt_asn1dertag(char *dest,unsigned long long source);
12

DESCRIPTION

14       fmt_asn1dertag  encodes  an  unsigned  integer  using the ASN.1 DER for
15       encoding tag.  This takes one byte for every 7 bits in the number.
16
17       If dest equals FMT_LEN (i.e. is NULL), fmt_asn1dertag returns the  num‐
18       ber of bytes it would have written.
19
20       For convenience, fmt.h defines the integer FMT_ASN1TAG to be big enough
21       to contain every possible fmt_asn1dertag output.
22

SEE ALSO

24       scan_asn1dertag(3)
25
26
27
28                                                             fmt_asn1dertag(3)
Impressum