1asn1_length_der(3) libtasn1 asn1_length_der(3)
2
3
4
6 asn1_length_der - API function
7
9 #include <libtasn1.h>
10
11 void asn1_length_der(unsigned long int len, unsigned char * der, int *
12 der_len);
13
15 unsigned long int len
16 value to convert.
17
18 unsigned char * der
19 buffer to hold the returned encoding (may be NULL).
20
21 int * der_len
22 number of meaningful bytes of ANS (der[0]..der[der_len-1]).
23
25 Creates the DER encoding of the provided length value. The der buffer
26 must have enough room for the output. The maximum length this function
27 will encode is ASN1_MAX_LENGTH_SIZE.
28
29 To know the size of the DER encoding use a NULL value for der .
30
32 Copyright © 2006-2015 Free Software Foundation, Inc..
33 Copying and distribution of this file, with or without modification,
34 are permitted in any medium without royalty provided the copyright
35 notice and this notice are preserved.
36
38 The full documentation for libtasn1 is maintained as a Texinfo manual.
39 If the info and libtasn1 programs are properly installed at your site,
40 the command
41
42 info libtasn1
43
44 should give you access to the complete manual. As an alternative you
45 may obtain the manual from:
46
47 http://www.gnu.org/software/libtasn1/manual/
48
49libtasn1 4.16.0 asn1_length_der(3)