kaveSelfDefenseSetPublicKey

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

data

In

The body of your public encryption key as a BLOB object.

size

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

S_OK

The function succeeds.

E_INVALIDARG

data is NULL.

E_NOTIMPL

An attempt has been made to call the kaveSelfDefenseSetPublicKey function before loading KAV SDK in system memory.

E_FAIL

An error occurred when registering the public encryption key as a BLOB object in system registry.

Page top