Registers your public encryption key in the system.
Before using this function make sure that your public key is signed by Kaspersky Lab.
Invoking this function places the body of the specified public key as a BLOB object to the system registry.
Syntax
HRESULT kaveSelfDefenseSetPublicKey (
const void* data,
unsigned int size
);
Parameters
The kaveSelfDefenseSetPublicKey function has the following parameters.
kaveSelfDefenseSetPublicKey function parameters
Name |
Type |
Description |
|---|---|---|
|
In |
The body of your public encryption key as a BLOB object. |
|
In |
Length of the BLOB object. |
Return value
The table below contains possible values that the kaveSelfDefenseSetPublicKey function can return.
kaveSelfDefenseSetPublicKey function return codes
Return code |
Description |
|---|---|
|
The function succeeds. |
|
|
|
An attempt has been made to call the |
|
An error occurred when registering the public encryption key as a BLOB object in system registry. |