![]() |
TrustCore SDK NanoCrypto API reference
version 7.0
|
Digicert SoT Platform key blob management code. More...
Go to the source code of this file.
Functions | |
MOC_EXTERN MSTATUS | KEYBLOB_extractKeyBlobEx (const ubyte *pKeyBlob, ubyte4 keyBlobLength, AsymmetricKey *pKey) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_extractKeyBlobTypeEx (const ubyte *pKeyBlob, ubyte4 keyBlobLength, ubyte4 *pRetKeyType) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_extractPublicKey (const ubyte *pKeyBlob, ubyte4 keyBlobLength, ubyte **ppRetPublicKeyBlob, ubyte4 *pRetPublicKeyBlobLength, ubyte4 *pRetKeyType) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_makeDSAKeyBlob (MOC_DSA(hwAccelDescr hwAccelCtx) DSAKey *pDSAContext, ubyte **ppRetKeyBlob, ubyte4 *pRetKeyLength) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_makeECCKeyBlob (MOC_ECC(hwAccelDescr hwAccelCtx) ECCKey *pECCKey, ubyte4 curveId, ubyte **ppRetKeyBlob, ubyte4 *pRetKeyLength) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_makeHSMRSAKeyBlob (RSAKey *pRSAKey, ubyte **ppRetKeyBlob, ubyte4 *pRetKeyLength) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_makeHybridBlob (ECCKey *pECCKey, QS_CTX *pCtx, ubyte **ppRetKeyBlob, ubyte4 *pRetKeyLength) |
MOC_EXTERN MSTATUS | KEYBLOB_makeKeyBlobEx (const AsymmetricKey *pKey, ubyte **ppRetKeyBlob, ubyte4 *pRetKeyLength) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_makeRSAKeyBlob (MOC_RSA(hwAccelDescr hwAccelCtx) RSAKey *pRSAContext, ubyte **ppRetKeyBlob, ubyte4 *pRetKeyLength) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_parseHeader (const ubyte *pKeyBlob, ubyte4 keyBlobLen, ubyte4 *pKeyType, ubyte4 *pVersion) |
MOC_EXTERN MSTATUS | KEYBLOB_readDSAKeyPart (MOC_DSA(hwAccelDescr hwAccelCtx) const ubyte *pKeyBlob, ubyte4 keyBlobLength, AsymmetricKey *pKey) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_readECCKeyPart (MOC_ECC(hwAccelDescr hwAccelCtx) const ubyte *pKeyBlob, ubyte4 keyBlobLength, AsymmetricKey *pKey) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_readHSMRSAKeyPart (const ubyte *pKeyBlob, ubyte4 keyBlobLength, AsymmetricKey *pKey) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_readOldRSAKeyBlob (MOC_RSA(hwAccelDescr hwAccelCtx) const ubyte *pKeyBlob, ubyte4 keyBlobLength, AsymmetricKey *pKey) |
This is an old function. More... | |
MOC_EXTERN MSTATUS | KEYBLOB_readRSAKeyPart (MOC_RSA(hwAccelDescr hwAccelCtx) const ubyte *pKeyBlob, ubyte4 keyBlobLength, AsymmetricKey *pKey) |
This is an old function. More... | |
This header file contains structures, enumerations, and function declarations for SoT Platform key blob management functions.
(new structures, new functions, etc.)
Whether the following flags are defined determines which structures and enumerations are defined:
__ENABLE_MOCANA_ECC__
Whether the following flags are defined determines which function declarations are enabled:
__PUBCRYPTO_HEADER__
MOC_EXTERN MSTATUS KEYBLOB_extractKeyBlobEx | ( | const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
AsymmetricKey * | pKey | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_extractKeyBlobTypeEx | ( | const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
ubyte4 * | pRetKeyType | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_extractPublicKey | ( | const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
ubyte ** | ppRetPublicKeyBlob, | ||
ubyte4 * | pRetPublicKeyBlobLength, | ||
ubyte4 * | pRetKeyType | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_makeDSAKeyBlob | ( | MOC_DSA(hwAccelDescr hwAccelCtx) DSAKey * | pDSAContext, |
ubyte ** | ppRetKeyBlob, | ||
ubyte4 * | pRetKeyLength | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_makeECCKeyBlob | ( | MOC_ECC(hwAccelDescr hwAccelCtx) ECCKey * | pECCKey, |
ubyte4 | curveId, | ||
ubyte ** | ppRetKeyBlob, | ||
ubyte4 * | pRetKeyLength | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_makeHSMRSAKeyBlob | ( | RSAKey * | pRSAKey, |
ubyte ** | ppRetKeyBlob, | ||
ubyte4 * | pRetKeyLength | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_makeKeyBlobEx | ( | const AsymmetricKey * | pKey, |
ubyte ** | ppRetKeyBlob, | ||
ubyte4 * | pRetKeyLength | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_makeRSAKeyBlob | ( | MOC_RSA(hwAccelDescr hwAccelCtx) RSAKey * | pRSAContext, |
ubyte ** | ppRetKeyBlob, | ||
ubyte4 * | pRetKeyLength | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_readDSAKeyPart | ( | MOC_DSA(hwAccelDescr hwAccelCtx) const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
AsymmetricKey * | pKey | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_readECCKeyPart | ( | MOC_ECC(hwAccelDescr hwAccelCtx) const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
AsymmetricKey * | pKey | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_readHSMRSAKeyPart | ( | const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
AsymmetricKey * | pKey | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_readOldRSAKeyBlob | ( | MOC_RSA(hwAccelDescr hwAccelCtx) const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
AsymmetricKey * | pKey | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.
MOC_EXTERN MSTATUS KEYBLOB_readRSAKeyPart | ( | MOC_RSA(hwAccelDescr hwAccelCtx) const ubyte * | pKeyBlob, |
ubyte4 | keyBlobLength, | ||
AsymmetricKey * | pKey | ||
) |
You should use CRYPTO_serialize to to get key blobs, along with DER and PEM encodings from keys, and CRYPTO_deserialize to build keys from key blobs, DER, and PEM.