EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Control the buffer size

Posted: 11/23/2015 06:03:17
by Aram Jivanyan (Basic support level)
Joined: 11/23/2015
Posts: 1

Is there any way to get buffers during read/write in 4096 byte lengths? We want to encrypt files with 4096 byte length blocks(except the latest block) Filter returns buffers with auxilary lengths...
Posted: 11/23/2015 06:08:38
by Eugene Mayevski (Team)

When the "process-cache" operation is handled, the filter passes to you whatever the initiating process has specified as the buffer. For "cache-filesystem" operations the buffer is a multiple of the cache page size.

There's no way to easily change the buffer size.

CallbackFilter includes several encryption-related samples and we recommend that you use one of them as a guide - encryption in filters is extremely non-trivial to implement. In particular, encryption algorithms are used in a special mode which allow seeking through the stream.

Sincerely yours
Eugene Mayevski



Topic viewed 4505 times

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


Back to top

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

Got it!