IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Functions
iotmi_pal_Pkcs11Operations.h File Reference

This file defines pkcs11 operations platform abstraction interface. More...

#include <stdbool.h>
#include <stdlib.h>
#include "core_pkcs11.h"

Go to the source code of this file.

Functions

bool iotmiPal_pkcs11LoadCertificate (CK_SESSION_HANDLE p11Session, const char *pCertificate, const char *pLabel, size_t certificateLength)
 Save the device client certificate into the PKCS #11 module.
 
bool iotmiPal_pkcs11LoadPrivateKey (CK_SESSION_HANDLE p11Session, const char *pPrivateKey, const char *pLabel, size_t privateKeyLength)
 Save the device client certificate into the PKCS #11 module.
 

Detailed Description

This file defines pkcs11 operations platform abstraction interface.

Function Documentation

◆ iotmiPal_pkcs11LoadCertificate()

bool iotmiPal_pkcs11LoadCertificate ( CK_SESSION_HANDLE  p11Session,
const char *  pCertificate,
const char *  pLabel,
size_t  certificateLength 
)

Save the device client certificate into the PKCS #11 module.

Parameters
[in]p11SessionThe PKCS #11 session to use.
[in]pCertificateThe certificate to load.
[in]pLabelPKCS #11 label for the certificate.
[in]certificateLengthLength of #pCertificate.
Returns
True on success.

◆ iotmiPal_pkcs11LoadPrivateKey()

bool iotmiPal_pkcs11LoadPrivateKey ( CK_SESSION_HANDLE  p11Session,
const char *  pPrivateKey,
const char *  pLabel,
size_t  privateKeyLength 
)

Save the device client certificate into the PKCS #11 module.

Parameters
[in]p11SessionThe PKCS #11 session to use.
[in]pPrivateKeyThe private key to load.
[in]pLabelPKCS #11 label for the private key.
[in]privateKeyLengthLength of #pPrivateKey.
Returns
True on success.