Microchip® Advanced Software Framework

pem.h File Reference

This module implements Base64 Decoder.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

#include "common/include/nm_common.h"
#include <string.h>

Enumerations

enum  tenuPEMEncType {
  PEM_TYPE_NONE,
  PEM_X509_CERT,
  PEM_PRIV_KEY,
  PEM_RSA_PRIV_KEY
}
 

Functions

sint8 DecodeBase64File (uint8 *pu8B64File, uint32 u32FileSize, uint8 **ppu8Key, uint32 *pu32KeySize, tenuPEMEncType *penuPemType)
 
sint8 DecodeX509Certificate (uint8 *pu8X509File, uint32 u32X509FileSz, uint8 **ppu8X509Der, uint32 *pu32X509Size)
 

Enumerator
PEM_TYPE_NONE 
PEM_X509_CERT 
PEM_PRIV_KEY 
PEM_RSA_PRIV_KEY 

sint8 DecodeBase64File ( uint8 pu8B64File,
uint32  u32FileSize,
uint8 **  ppu8Key,
uint32 pu32KeySize,
tenuPEMEncType penuPemType 
)
sint8 DecodeX509Certificate ( uint8 pu8X509File,
uint32  u32X509FileSz,
uint8 **  ppu8X509Der,
uint32 pu32X509Size 
)