Handling compressed files in encryption filter

Yet another “fun” in the encryption filter path…
If I encrypt/decrypt all non cached paging IO, on NTFS, compressed
files will be double encrypted… (or single encrypted, not sure due to
the use of byte flip at this time)
How do I handle this situation?
After observing the flags (Irp->Flags, FileObject->Flags and
IrpSp->MinorFunction, IrpSp->Parameters.Create.Options) I cannot find
any difference from ordinary reads or writes…


Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com ICQ#: 56570367
Alfa File Monitor - File monitoring library for Win32 developers.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa Registry Monitor - Registry monitoring library for Win32
developers.
Alfa Registry Protector - Registry protection library for Win32
developers.