... length" larger than the plaintext. Here is my code: pbBuffer := space(dwBufferLen) dwCount := fread(hSource,@pbBuffer,dwBlockLen) Encrypt(hKey, 0, feof(hSource), 0, @pbBuffer, @dwCount, dwBufferLen) DLL32 Function Encrypt( hKey AS LONG,; hHash AS LONG,; lFinal AS BOOL,; nFlags AS DWORD,; @cData ...