CascLib API Reference

CascFindEncryptionKey

Description


  LPBYTE WINAPI CascFindEncryptionKey(
      HANDLE hStorage,                // Handle to an open storage
      ULONGLONG KeyName               // "Name" of the key
      );

Function CascFindEncryptionKey finds an encryption key.

Parameters

hStorage [in]
Handle to an open CASC storage.
KeyName [in]
Identifier of the new key being added.

Return Value

On success, the function returns pointer to the stored encryption key.
On failure, the function returns NULL.