The SOPC_KeyManager provides an API for Asymmetric Key Management such as loading signed public keys (Certificate) and the corresponding private key. Also see sopc_key_manager_lib_itf.h for the complete API.
More...
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedAsymmetricKey_CreateFromData (const uint8_t *data, uint32_t len, SOPC_SerializedAsymmetricKey **key) |
| Creates a serialized asymmetric key from a DER or PEM payload. More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedAsymmetricKey_CreateFromFile (const char *path, SOPC_SerializedAsymmetricKey **key) |
| Creates a serialized asymmetric key from a file in DER or PEM format. More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedAsymmetricKey_CreateFromFile_WithPwd (const char *keyPath, SOPC_SerializedAsymmetricKey **key, char *password, uint32_t lenPassword) |
| Creates a serialized asymmetric key from a file in DER or PEM format with an optional password for the encrypted private key (PEM format). More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedAsymmetricKey_CreateFromKey (const SOPC_AsymmetricKey *pKey, bool is_public, SOPC_SerializedAsymmetricKey **out) |
| Creates a serialized asymmetric key from an SOPC_AsymmetricKey structure. More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedAsymmetricKey_Deserialize (const SOPC_SerializedAsymmetricKey *key, bool is_public, SOPC_AsymmetricKey **res) |
| Deserializes a serialized key. More...
|
|
void | SOPC_KeyManager_SerializedAsymmetricKey_Delete (SOPC_SerializedAsymmetricKey *key) |
| Releases all resources associated to a serialized asymmetric key. More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedCertificate_CreateFromDER (const uint8_t *der, uint32_t len, SOPC_SerializedCertificate **cert) |
| Creates a serialized certificate from a DER payload. More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedCertificate_CreateFromFile (const char *path, SOPC_SerializedCertificate **cert) |
| Creates a serialized certificate from a file in DER or PEM format. More...
|
|
void | SOPC_KeyManager_SerializedCertificate_Delete (SOPC_SerializedCertificate *cert) |
| Releases all resources associated to a serialized certificate. More...
|
|
SOPC_ReturnStatus | SOPC_KeyManager_SerializedCertificate_Deserialize (const SOPC_SerializedCertificate *cert, SOPC_CertificateList **res) |
| Deserializes a serialized certificate. More...
|
|
const SOPC_Buffer * | SOPC_KeyManager_SerializedCertificate_Data (const SOPC_SerializedCertificate *cert) |
| Returns the data held in a serialized certificate. More...
|
|
const SOPC_Buffer * | SOPC_KeyManager_SerializedCRL_Data (const SOPC_SerializedCRL *crl) |
| Returns the data held in a serialized CRL. More...
|
|
The SOPC_KeyManager provides an API for Asymmetric Key Management such as loading signed public keys (Certificate) and the corresponding private key. Also see sopc_key_manager_lib_itf.h for the complete API.
KeyManager is different than PKIProvider, which only handles signed public key validation and storage.
KeyManager API is context-less. The KeyManager is generic, and is not linked to the current security policy.