TrustCore SDK NanoCert API reference  version 7.0
pkcs_key.h File Reference

Header file for Digicert SoT Platform source code for PKCS #1 and PKCS #10 utility routines. More...

Go to the source code of this file.

Enumerations

enum  PKCS8EncryptionType {
  PCKS8_EncryptionType_undefined = 0, PCKS8_EncryptionType_pkcs5_v2_3des = 5000 + 1, PCKS8_EncryptionType_pkcs5_v2_aes128 = 5000 + 4, PCKS8_EncryptionType_pkcs5_v2_aes192 = 5000 + 5,
  PCKS8_EncryptionType_pkcs5_v2_aes256 = 5000 + 6, PKCS8_EncryptionType_pkcs12 = 12000, PCKS8_EncryptionType_pkcs12_sha_2des = PKCS8_EncryptionType_pkcs12 + 4, PCKS8_EncryptionType_pkcs12_sha_3des = PKCS8_EncryptionType_pkcs12 + 3,
  PCKS8_EncryptionType_pkcs12_sha_rc4_40 = PKCS8_EncryptionType_pkcs12 + 2, PCKS8_EncryptionType_pkcs12_sha_rc4_128 = PKCS8_EncryptionType_pkcs12 + 1
}
 
enum  PKCS8PrfType {
  PKCS8_PrfType_undefined = 0, PKCS8_PrfType_pkcs5_v2_hmacSHA1Digest = 7, PKCS8_PrfType_pkcs5_v2_hmacSHA224Digest = 8, PKCS8_PrfType_pkcs5_v2_hmacSHA256Digest = 9,
  PKCS8_PrfType_pkcs5_v2_hmacSHA384Digest = 10, PKCS8_PrfType_pkcs5_v2_hmacSHA512Digest = 11
}
 

Functions

MOC_EXTERN MSTATUS PKCS_getPKCS1Key (MOC_RSA(hwAccelDescr hwAccelCtx) const ubyte *pPKCS1DER, ubyte4 pkcs1DERLen, AsymmetricKey *pKey)
 
MOC_EXTERN MSTATUS PKCS_getPKCS8Key (MOC_ASYM(hwAccelDescr hwAccelCtx) const ubyte *pPKCS8DER, ubyte4 pkcs8DERLen, AsymmetricKey *pKey)
 Extract SoT Platform-formatted key from unencrypted PKCS #8 DER file. More...
 
MOC_EXTERN MSTATUS PKCS_getPKCS8KeyEx (MOC_HW(hwAccelDescr hwAccelCtx) const ubyte *pPKCS8DER, ubyte4 pkcs8DERLen, const ubyte *password, ubyte4 passwordLen, AsymmetricKey *pKey)
 Extract SoT Platform-formatted key from PKCS #8 DER file (encrypted or unencrypted). More...
 

Detailed Description

Header file for Digicert SoT Platform source code for PKCS #1 and PKCS #10 utility routines.

pkcs_key.h