Function anj_crypto_storage_resolve_external_private_key_info
Defined in File storage.h
Function Documentation
-
int anj_crypto_storage_resolve_external_private_key_info(void *crypto_ctx, anj_crypto_security_info_external_t *info, void *out_pk_ctx)
- Experimental:
This is an experimental API. This API can change in the future versions without any notice.
Populates the private key context with information required for externally performed signing operations, e.g. using an HSM or secure element.
This function is used when the private key material is not directly available to the crypto backend. Instead, it provides backend-specific information that allows the backend to delegate signing to an external provider.
- Parameters:
crypto_ctx – Cryptographic context.
info – Security record identifier.
out_pk_ctx – [out] Private key context to be populated with backend-specific data required for signing. The exact type depends on the selected crypto backend.
- Returns:
0 on success, or a negative value in case of error.