GetEncryptedAesKey
Declaration
Delphi
function GetEncryptedAesKey(var outLen:Integer): Pointer;
C/C++
SOPAD_API LPVOID SOPAD_GetEncryptedAesKey(int* outLen);
ActiveX
HRESULT GetEncryptedAesKey([out, retval] VARIANT* Result);
Description
Function retrieves encrypted AES key from signature device.
Preliminary document hash must be set with the help of function SetPreliminaryDocumentHash before calling this function.
Arguments
outLen
Size of encrypted AES key in bytes.
Return value
Function returns pointer to memory block with encrypted AES key. In case of failure function returns nil or zero-size array.