diff options
Diffstat (limited to 'rpc_api.c')
-rw-r--r-- | rpc_api.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -432,6 +432,26 @@ hal_error_t hal_rpc_pkey_import(const hal_client_handle_t client, return hal_rpc_pkey_dispatch->import(client, session, pkey, name, kekek, pkcs8, pkcs8_len, kek, kek_len, flags); } +hal_error_t hal_rpc_pkey_export_raw(const hal_pkey_handle_t pkey, + uint8_t *der, size_t *der_len, const size_t der_max) +{ + if (der == NULL || der_len == NULL) + return HAL_ERROR_BAD_ARGUMENTS; + return hal_rpc_pkey_dispatch->export_raw(pkey, der, der_len, der_max); +} + +hal_error_t hal_rpc_pkey_import_raw(const hal_client_handle_t client, + const hal_session_handle_t session, + hal_pkey_handle_t *pkey, + hal_uuid_t *name, + const uint8_t * const der, const size_t der_len, + const hal_key_flags_t flags) +{ + if (pkey == NULL || name == NULL || der == NULL) + return HAL_ERROR_BAD_ARGUMENTS; + return hal_rpc_pkey_dispatch->import_raw(client, session, pkey, name, der, der_len, flags); +} + /* * Local variables: * indent-tabs-mode: nil |