asn1berStream.h File Reference

#include "rtbersrc/asn1ber.h"
#include "rtxsrc/rtxStream.h"

Go to the source code of this file.

Defines

#define BS_CHKEOB(pctxt)
#define BS_CHKEND(pctxt, ccb_p)

Functions

int berStrmInitContext (OSCTXT *pctxt)
int berStrmInitContextUsingKey (OSCTXT *pctxt, const OSOCTET *key, size_t keylen)
int berStrmFreeContext (OSCTXT *pctxt)
int berEncStrmBigInt (OSCTXT *pctxt, const char *pvalue, ASN1TagType tagging)
int berEncStrmBigIntNchars (OSCTXT *pctxt, const char *pvalue, size_t nchars, ASN1TagType tagging)
int berEncStrmBitStr (OSCTXT *pctxt, const OSOCTET *object_p, OSUINT32 numbits, ASN1TagType tagging)
int berEncStrmBMPStr (OSCTXT *pctxt, const Asn116BitCharString *object_p, ASN1TagType tagging)
int berEncStrmBool (OSCTXT *pctxt, OSBOOL value, ASN1TagType tagging)
int berEncStrmCharStr (OSCTXT *pctxt, const char *object_p, ASN1TagType tagging, ASN1TAG tag)
int berEncStrmDefLength (OSCTXT *pctxt, size_t len)
int berEncStrmEOC (OSCTXT *pctxt)
int berEncStrmEnum (OSCTXT *pctxt, OSINT32 value, ASN1TagType tagging)
int berEncStrmInt (OSCTXT *pctxt, OSINT32 value, ASN1TagType tagging)
int berEncStrmInt8 (OSCTXT *pctxt, OSINT8 value, ASN1TagType tagging)
int berEncStrmInt16 (OSCTXT *pctxt, OSINT16 value, ASN1TagType tagging)
int berEncStrmInt64 (OSCTXT *pctxt, OSINT64 value, ASN1TagType tagging)
int berEncStrmLength (OSCTXT *pctxt, int length)
int berEncStrmNull (OSCTXT *pctxt, ASN1TagType tagging)
int berEncStrmObjId (OSCTXT *pctxt, const ASN1OBJID *object_p, ASN1TagType tagging)
int berEncStrmObjId64 (OSCTXT *pctxt, const ASN1OID64 *object_p, ASN1TagType tagging)
int berEncStrmOctStr (OSCTXT *pctxt, const OSOCTET *object_p, OSUINT32 numocts, ASN1TagType tagging)
int berEncStrmOpenTypeExt (OSCTXT *pctxt, OSRTDList *pElemList)
int berEncStrmReal (OSCTXT *pctxt, OSREAL value, ASN1TagType tagging)
int berEncStrmReal10 (OSCTXT *pctxt, const char *object_p, ASN1TagType tagging)
int cerEncStrmReal10 (OSCTXT *pctxt, const char *object_p, ASN1TagType tagging)
int berEncStrmRelativeOID (OSCTXT *pctxt, const ASN1OBJID *object_p, ASN1TagType tagging)
int berEncStrmTag (OSCTXT *pctxt, ASN1TAG tag)
int berEncStrmTagAndLen (OSCTXT *pctxt, ASN1TAG tag, int length)
int berEncStrmTagAndIndefLen (OSCTXT *pctxt, ASN1TAG tag)
int berEncStrmUInt (OSCTXT *pctxt, OSUINT32 value, ASN1TagType tagging)
int berEncStrmUInt8 (OSCTXT *pctxt, OSUINT8 value, ASN1TagType tagging)
int berEncStrmUInt16 (OSCTXT *pctxt, OSUINT16 value, ASN1TagType tagging)
int berEncStrmUInt64 (OSCTXT *pctxt, OSUINT64 value, ASN1TagType tagging)
int berEncStrmUnivStr (OSCTXT *pctxt, const Asn132BitCharString *object_p, ASN1TagType tagging)
int berEncStrmXSDAny (OSCTXT *pctxt, OSXSDAny *pvalue, ASN1TagType tagging)
int berEncStrmWriteOctet (OSCTXT *pctxt, OSOCTET octet)
int berEncStrmWriteOctets (OSCTXT *pctxt, const OSOCTET *poctets, size_t numocts)
int cerEncStrmBMPStr (OSCTXT *pctxt, const Asn116BitCharString *object_p, ASN1TagType tagging)
int cerEncStrmBitStr (OSCTXT *pctxt, const OSOCTET *object_p, OSUINT32 numbits, ASN1TagType tagging)
int cerEncStrmCharStr (OSCTXT *pctxt, const char *object_p, ASN1TagType tagging, ASN1TAG tag)
int cerEncStrmOctStr (OSCTXT *pctxt, const OSOCTET *object_p, OSUINT32 numocts, ASN1TagType tagging)
int cerEncStrmUnivStr (OSCTXT *pctxt, const Asn132BitCharString *object_p, ASN1TagType tagging)
int berDecStrmBMPStr (OSCTXT *pctxt, Asn116BitCharString *object_p, ASN1TagType tagging, int length)
int berDecStrmBigInt (OSCTXT *pctxt, const char **object_p, ASN1TagType tagging, int length)
int berDecStrmBitStr (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnbits, ASN1TagType tagging, int length)
int berDecStrmBool (OSCTXT *pctxt, OSBOOL *object_p, ASN1TagType tagging, int length)
int berDecStrmCharStr (OSCTXT *pctxt, const char **ppvalue, ASN1TagType tagging, ASN1TAG tag, int length)
OSBOOL berDecStrmCheckEnd (OSCTXT *pctxt, ASN1CCB *pccb)
int berDecStrmDynBitStr (OSCTXT *pctxt, const OSOCTET **ppvalue, OSUINT32 *pnbits, ASN1TagType tagging, int length)
int berDecStrmDynOctStr (OSCTXT *pctxt, const OSOCTET **ppvalue, OSUINT32 *pnocts, ASN1TagType tagging, int length)
int berDecStrmEnum (OSCTXT *pctxt, OSINT32 *object_p, ASN1TagType tagging, int length)
int berDecStrmGetTLVLength (OSCTXT *pctxt)
int berDecStrmInt (OSCTXT *pctxt, OSINT32 *object_p, ASN1TagType tagging, int length)
int berDecStrmInt8 (OSCTXT *pctxt, OSINT8 *object_p, ASN1TagType tagging, int length)
int berDecStrmInt16 (OSCTXT *pctxt, OSINT16 *object_p, ASN1TagType tagging, int length)
int berDecStrmInt64 (OSCTXT *pctxt, OSINT64 *object_p, ASN1TagType tagging, int length)
int berDecStrmLength (OSCTXT *pctxt, int *len_p)
int berDecStrmMatchEOC (OSCTXT *pctxt)
int berDecStrmMatchTag (OSCTXT *pctxt, ASN1TAG tag, int *len_p, OSBOOL advance)
int berDecStrmNextElement (OSCTXT *pctxt)
int berDecStrmNull (OSCTXT *pctxt, ASN1TagType tagging)
int berDecStrmObjId (OSCTXT *pctxt, ASN1OBJID *object_p, ASN1TagType tagging, int length)
int berDecStrmObjId64 (OSCTXT *pctxt, ASN1OID64 *object_p, ASN1TagType tagging, int length)
int berDecStrmOctStr (OSCTXT *pctxt, OSOCTET *pvalue, OSUINT32 *pnocts, ASN1TagType tagging, int length)
int berDecStrmOpenType (OSCTXT *pctxt, const OSOCTET **object_p2, OSUINT32 *pnumocts)
int berDecStrmOpenTypeAppend (OSCTXT *pctxt, OSRTDList *pElemList)
int berDecStrmOpenTypeExt (OSCTXT *pctxt, ASN1CCB *ccb_p, ASN1TAG tag, OSRTDList *pElemList)
int berDecStrmPeekTagAndLen (OSCTXT *pctxt, ASN1TAG *ptag, int *plen)
int berDecStrmReadDynTLV (OSCTXT *pctxt, OSOCTET **ppbuf)
int berDecStrmReadTLV (OSCTXT *pctxt, OSOCTET *buf, size_t bufsiz)
int berDecStrmReal (OSCTXT *pctxt, OSREAL *object_p, ASN1TagType tagging, int length)
int berDecStrmReal10 (OSCTXT *pctxt, const char **object_p, ASN1TagType tagging, int length)
int berDecStrmRelativeOID (OSCTXT *pctxt, ASN1OBJID *object_p, ASN1TagType tagging, int length)
int berDecStrmTag (OSCTXT *pctxt, ASN1TAG *tag_p)
int berDecStrmTagAndLen (OSCTXT *pctxt, ASN1TAG *tag_p, int *len_p)
OSBOOL berDecStrmTestEOC (OSCTXT *pctxt, ASN1CCB *ccb_p)
int berDecStrmTestTag (OSCTXT *pctxt, ASN1TAG tag, int *len_p, OSBOOL advance)
int berDecStrmUInt (OSCTXT *pctxt, OSUINT32 *object_p, ASN1TagType tagging, int length)
int berDecStrmUInt8 (OSCTXT *pctxt, OSUINT8 *object_p, ASN1TagType tagging, int length)
int berDecStrmUInt16 (OSCTXT *pctxt, OSUINT16 *object_p, ASN1TagType tagging, int length)
int berDecStrmUInt64 (OSCTXT *pctxt, OSUINT64 *object_p, ASN1TagType tagging, int length)
int berDecStrmUnivStr (OSCTXT *pctxt, Asn132BitCharString *object_p, ASN1TagType tagging, int length)
int cerEncCanonicalSort (OSCTXT *pctxt, OSCTXT *pMemCtxt, OSRTSList *pList)
void cerGetBufLocDescr (OSCTXT *pctxt, Asn1BufLocDescr *pDescr)
void cerAddBufLocDescr (OSCTXT *pctxt, OSRTSList *pElemList, Asn1BufLocDescr *pDescr)

Detailed Description

ASN.1 runtime constants, data structure definitions, and functions to support the streaming encoding/decoding of Basic Encoding Rules (BER) as defined in the ITU-T X.690 standard.