EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to use callbackfilter api:setendofFile

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 02/16/2009 21:26:31
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

How to use callbackfilter api:setendofFile to enlarge the file size,
we want to enlarge the encrypted file size,to insert some message into the file
to indicate that the file have been encrypted or not?

Can we? Thank you.
Posted: 02/17/2009 05:55:34
by Vladimir Cherniga (EldoS Corp.)

In order to use this api you should have a file handle. This handle shoud be obtained from CallbackFilter::OpenFile() or CallbackFilter::CreateFile() api. Then you can use CallbackFilter::SetEndOfFile() api from the callbacks. It should be closed with CloseHandle() win32 api when this handle is out of use.
The cbilter package has an "Encrypt" sample project that demonstrates the basic usage of the techinique that encrypt/decript files withing a single directory on the fly.
Posted: 02/17/2009 18:12:27
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Thank for your response.
Yes,I exactly evaluate on the basic on your example-"encrypt"
I don't know which callback function CallbackFilter::SetEndOfFile() ,
I first try to use CallbackFilter::SetEndOfFile() in onPostWritefile
But system hang.
Could you give more detailed information on how to use CallbackFilter::SetEndOfFile() , or any other way which can enlarge the encrypted fileSize.




Topic viewed 3832 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!