Microchip® Advanced Software Framework

rsa_key.c File Reference

RSA Key parser/decoder.

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

Enumerations

enum  RSAKeyParsing {
  RSA_N,
  RSA_E,
  RSA_D,
  RSA_P,
  RSA_Q,
  RSA_DP,
  RSA_DQ,
  RSA_QINV,
  RSA_DONE
}
 A state machine for parsing the RSA Private key. It is ordered with the same order of the RSA key elements occurance in the ASN.1 form. More...
 

Functions

sint8 CryptoDecodeRsaPrivKey (uint8 *pu8RsaKeyFile, uint32 u32KeySize, tstrASN1RSAPrivateKey *pstrRsaPrivKey)
 
static sint8 ParsePrivKey (uint8 *pu8PrivKey, uint16 u16KeySize, tstrASN1RSAPrivateKey *pstrKey)
 
static sint8 ParseRsaPrivKey (uint8 *pu8PrivKey, uint16 u16KeySize, tstrASN1RSAPrivateKey *pstrAsn1Key)
 

A state machine for parsing the RSA Private key. It is ordered with the same order of the RSA key elements occurance in the ASN.1 form.

Enumerator
RSA_N 
RSA_E 
RSA_D 
RSA_P 
RSA_Q 
RSA_DP 
RSA_DQ 
RSA_QINV 
RSA_DONE 

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