Microchip® Advanced Software Framework

crypto_api.h File Reference

Header file for cryptographic algorithms.

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

#include "common/include/nm_common.h"
#include "driver/include/m2m_types.h"

Data Structures

struct  tstrASN1RSAPrivateKey
 
struct  tstrECDSAPubKey
 
struct  tstrRsaPrivateKey
 
struct  tstrRSAPubKey
 
struct  tstrX509CertPublicKey
 
struct  tstrX509Name
 
struct  txtrX509CertInfo
 

Macros

#define CRYPTO_SHA1_DIGEST_SIZE   (20)
 
#define ECC_POINT_MAX   (72)
 

Enumerations

enum  tenuCertPubKeyType {
  X509_CERT_PUBKEY_RSA = 1,
  X509_CERT_PUBKEY_ECDSA = 2
}
 

Functions

sint8 CryptoDecodeRsaPrivKey (uint8 *pu8RsaKeyFile, uint32 u32KeySize, tstrASN1RSAPrivateKey *pstrRsaPrivKey)
 
sint8 CryptoX509CertDecode (uint8 *pu8X509CertBuf, uint16 u16X509CertBuffer, txtrX509CertInfo *pstrCert, uint8 bDumpCert)
 
void CryptoX509DeleteContext (txtrX509CertInfo *pstrCert)
 

#define CRYPTO_SHA1_DIGEST_SIZE   (20)
#define ECC_POINT_MAX   (72)

Enumerator
X509_CERT_PUBKEY_RSA 
X509_CERT_PUBKEY_ECDSA 

sint8 CryptoDecodeRsaPrivKey ( uint8 pu8RsaKeyFile,
uint32  u32KeySize,
tstrASN1RSAPrivateKey pstrRsaPrivKey 
)