Manage increased file size

Hi Everyone,
I am developing a minifilter driver which encrypt and decrypt files on fly. When i save txt file i receive a sector aligned buffer in my prewrite function with nocache io flag set. Basically iopb->Parameters.Write.Length gives size of buffer not the size of content in that and hence i am encrypting whole buffer not just my content. Next challenge is i am not able to save the extra bytes, generated during encryption, to disk.
How can make this work?
Thanks in advance.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.