NetBurner 3.5.0
PDF Version |
|
Macros | |
#define | CONVERT_BUFFER_LENGTH_MAX ((4 * 1024) - 1) |
Minimum data buffer length in bytes. | |
Functions | |
int | ConvertPEMFormattedData (puint8_t dataPtr, const char *pemEncodedData, uint32_t dataSize, puint32_t convertedDataLength, char **nextPtr=NULL) |
Convert data from Privacy-enhanced Electronic Mail (PEM) format to binary. | |
uint16_t | convertLittleEndianWord (uint16_t hData) |
Convert multibyte host format data to/from little endian. | |
uint32_t | convertLittleEndianDword (uint32_t hData) |
Convert multibyte host format data to/from little endian. | |
#include< convert.h >
uint32_t convertLittleEndianDword | ( | uint32_t | hData | ) |
#include <convert.h>
Convert multibyte host format data to/from little endian.
hData | Multibyte data to convert |
uint16_t convertLittleEndianWord | ( | uint16_t | hData | ) |
#include <convert.h>
Convert multibyte host format data to/from little endian.
hData | Multibyte data to convert |
int ConvertPEMFormattedData | ( | puint8_t | dataPtr, |
const char * | pemEncodedData, | ||
uint32_t | dataSize, | ||
puint32_t | convertedDataLength, | ||
char ** | nextPtr = NULL ) |
#include <convert.h>
Convert data from Privacy-enhanced Electronic Mail (PEM) format to binary.
dataSize should be at least CONVERT_BUFFER_LENGTH_MAX and NULL terminated. Limited to file formats used for RSA & DSA keys and X.509 certificates.
dataPtr | Buffer for converted data |
pemEncodedData | PEM encoded data |
dataSize | Buffer size in bytes |
convertedDataLength | Set to length of converted data |
nextPtr |
CONVERT_NONE | Malformed data or calling parameters |
CONVERT_CERTIFICATE | |
CONVERT_RSA_PRIVATE_KEY | |
CONVERT_DSA_PRIVATE_KEY |