OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
DER_Encode.h File Reference
#include "libDER.h"

Go to the source code of this file.

Macros

#define DER_MAX_ENCODED_SIZE(len)
 
#define DER_ENC_NO_OPTS   0x0000
 
#define DER_ENC_SIGNED_INT   0x0100
 
#define DER_ENC_WRITE_DER   0x0200
 

Functions

DERSize DERLengthOfLength (DERSize length)
 
DERReturn DEREncodeLength (DERSize length, DERByte *buf, DERSize *inOutLen)
 
DERSize DERLengthOfItem (DERTag tag, DERSize length)
 
DERReturn DEREncodeItem (DERTag tag, DERSize length, const DERByte *src, DERByte *derOut, DERSize *inOutLen)
 
DERReturn DEREncodeSequence (DERTag topTag, const void *src, DERShort numItems, const DERItemSpec *itemSpecs, DERByte *derOut, DERSize *inOutLen)
 
DERSize DERLengthOfEncodedSequence (DERTag topTag, const void *src, DERShort numItems, const DERItemSpec *itemSpecs)
 

Macro Definition Documentation

◆ DER_ENC_NO_OPTS

#define DER_ENC_NO_OPTS   0x0000

Definition at line 57 of file DER_Encode.h.

◆ DER_ENC_SIGNED_INT

#define DER_ENC_SIGNED_INT   0x0100

Definition at line 60 of file DER_Encode.h.

◆ DER_ENC_WRITE_DER

#define DER_ENC_WRITE_DER   0x0200

Definition at line 63 of file DER_Encode.h.

◆ DER_MAX_ENCODED_SIZE

#define DER_MAX_ENCODED_SIZE ( len)
Value:
( 1 + /* tag */ \
5 + /* max length */ \
1 + /* possible prepended zero */ \
len)

Definition at line 23 of file DER_Encode.h.

Function Documentation

◆ DEREncodeItem()

DERReturn DEREncodeItem ( DERTag tag,
DERSize length,
const DERByte * src,
DERByte * derOut,
DERSize * inOutLen )

◆ DEREncodeLength()

DERReturn DEREncodeLength ( DERSize length,
DERByte * buf,
DERSize * inOutLen )

◆ DEREncodeSequence()

DERReturn DEREncodeSequence ( DERTag topTag,
const void * src,
DERShort numItems,
const DERItemSpec * itemSpecs,
DERByte * derOut,
DERSize * inOutLen )

◆ DERLengthOfEncodedSequence()

DERSize DERLengthOfEncodedSequence ( DERTag topTag,
const void * src,
DERShort numItems,
const DERItemSpec * itemSpecs )

◆ DERLengthOfItem()

DERSize DERLengthOfItem ( DERTag tag,
DERSize length )

◆ DERLengthOfLength()

DERSize DERLengthOfLength ( DERSize length)