asn1_length_der − API function


#include <libtasn1.h>

void asn1_length_der(unsigned long int len, unsigned char * der, int * der_len);


unsigned long int len

value to convert.

unsigned char * der

buffer to hold the returned encoding (may be NULL).

int * der_len

number of meaningful bytes of ANS (der[0]..der[der_len−1]).


Creates the DER encoding of the provided length value. The der buffer must have enough room for the output. The maximum length this function will encode is ASN1_MAX_LENGTH_SIZE.

To know the size of the DER encoding use a NULL value for der .


Copyright © 2006-2013 Free Software Foundation, Inc..
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.


The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your site, the command

info libtasn1

should give you access to the complete manual. As an alternative you may obtain the manual from:

More Linux Commands

Mail::SpamAssassin::Plugin::AWL(3pm) - Normalize scores via
This plugin module provides support for the auto-whitelist. It keeps track of the average SpamAssassin score for senders. Senders are tracked using a combinatio

ldap_compare_ext(3) - Perform an LDAP compare operation.....
The ldap_compare_ext_s() routine is used to perform an LDAP compare operation synchronously. It takes dn, the DN of the entry upon which to perform the compare,

skill(1) - send a signal or report process status (ManPage)
These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead. The default signal

xdr_union(3) - library routines for external data representa
These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using

usleep(3) - suspend execution for microsecond intervals.....
The usleep() function suspends execution of the calling thread for (at least) usec microseconds. The sleep may be lengthened slightly by any system activity or

ModPerl::Registry(3pm) - Run unaltered CGI scripts persisten
URIs in the form of will be compiled as the body of a Perl subroutine and executed. Each child process will compile the subrouti

PTBatcherGUI(1) - Hugin batch processor - Linux manual page
A GUI Batch Processor for managing the stitching of a queue of hugin .pto projects. OPTIONS -h|--help Show usage message -b|--batch Run batch immediately -p|--p

html2text(1) an advanced HTMLtotext converter (Man Page)....
html2text reads HTML documents from the input-urls, formats each of them into a stream of plain text characters, and writes the result to standard output (or in

catch(n) - Evaluate script and trap exceptional returns.....
The catch command may be used to prevent errors from aborting command interpretation. The catch command calls the Tcl interpreter recursively to execute script,

use_extended_names(3ncurses) - miscellaneous curses extensio
use_extended_names.3ncurses - These functions are extensions to the curses library which do not fit easily into other categories. Use curses_version() to get th

Tcl_CommandTraceInfo(3) - monitor renames and deletes of a c
Tcl_TraceCommand allows a C procedure to monitor operations performed on a Tcl command, so that the C procedure is invoked whenever the command is renamed or de

Tcl_SetChannelError(3) - functions to create/intercept Tcl e
The current definition of a Tcl channel driver does not permit the direct return of arbitrary error messages, except for the setting and retrieval of channel op

We can't live, work or learn in freedom unless the software we use is free.