1asn1_bit_der(3)                    libtasn1                    asn1_bit_der(3)
2
3
4

NAME

6       asn1_bit_der - API function
7

SYNOPSIS

9       #include <libtasn1.h>
10
11       void asn1_bit_der(const unsigned char * str, int bit_len, unsigned char
12       * der, int * der_len);
13

ARGUMENTS

15       const unsigned char * str
16                   BIT string.
17
18       int bit_len number of meaningful bits in STR.
19
20       unsigned char * der
21                   string returned.
22
23       int * der_len
24                   number of meaningful bytes of DER (der[0]..der[ans_len-1]).
25

DESCRIPTION

27       Creates a length-value DER encoding for the input data as it would have
28       been for a BIT STRING.  The DER encoded data will be copied in  der .
29
30       Note that the BIT STRING tag is not included in the output.
31
32       This  function  does  not  return any value because it is expected that
33       der_len will contain enough bytes to store  the  string  plus  the  DER
34       encoding.    The    DER   encoding   size   can   be   obtained   using
35       asn1_length_der().
36
38       Copyright © 2006-2015 Free Software Foundation, Inc..
39       Copying and distribution of this file, with  or  without  modification,
40       are  permitted  in  any  medium  without royalty provided the copyright
41       notice and this notice are preserved.
42

SEE ALSO

44       The full documentation for libtasn1 is maintained as a Texinfo  manual.
45       If  the info and libtasn1 programs are properly installed at your site,
46       the command
47
48              info libtasn1
49
50       should give you access to the complete manual.  As an  alternative  you
51       may obtain the manual from:
52
53              http://www.gnu.org/software/libtasn1/manual/
54
55libtasn1                              4.8                      asn1_bit_der(3)
Impressum