lanmanredirector encryption

I’ve succeeded doing encryption between client and server.
Encryption is done on the client side.
but still, i have a problem about some file type(such as WAB file).
i trace the MJ_WRITE dispatch routine. I find that during some
write operation, the irpsp.parameters.write.length
is not aligned by 16 bytes.(My encryption algorithm is 16 bytes grouping.)
so, i do not encrypt the remain bytes. and hence, some bytes of the buffer
are not encrypted.

the file types below are supported by my filter:
doc,rar,zip,xls,ppt,exe,mdb, and of course,all the plain text file types.


No one knows what tomorrow would be,
but I’ll do my best.

Two suggestions:

  • Use a real name in these newsgroups, so people have a better idea of who you
    are. Shouldn’t matter, but it gives them that fuzzy nice feeling:-)
  • Redo your encryption. There is no reason why any read/write has to be 16 byte
    aligned. If you use 16-byte aligned encryption, I assume you use plain ECB mode (as
    noone sain would try to use CBC on files for transparent encryption). That is broken
    encryption at its core.

Abc wrote:

I’ve succeeded doing encryption between client and server.
Encryption is done on the client side.
but still, i have a problem about some file type(such as WAB file).
i trace the MJ_WRITE dispatch routine. I find that during some
write operation, the irpsp.parameters.write.length
is not aligned by 16 bytes.(My encryption algorithm is 16 bytes grouping.)
so, i do not encrypt the remain bytes. and hence, some bytes of the buffer
are not encrypted.

the file types below are supported by my filter:
doc,rar,zip,xls,ppt,exe,mdb, and of course,all the plain text file types.


No one knows what tomorrow would be,
but I’ll do my best.


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.

All right. thank u .
yes, u r right, I use ECB encryption mode,16 bytes aligned.

i have no idea about it.

ps. I am a Chinese ,in Guangzhou city, a driver developer.

Regards,
Ming


No one knows what tomorrow would be,
but I’ll do my best.
“Dejan Maksimovic” дÈëÏûÏ¢ÐÂÎÅ:xxxxx@ntfsd…
>
> Two suggestions:
> - Use a real name in these newsgroups, so people have a better idea of
who you
> are. Shouldn’t matter, but it gives them that fuzzy nice feeling:-)
> - Redo your encryption. There is no reason why any read/write has to
be 16 byte
> aligned. If you use 16-byte aligned encryption, I assume you use plain ECB
mode (as
> noone sain would try to use CBC on files for transparent encryption). That
is broken
> encryption at its core.
>
> Abc wrote:
>
> > I’ve succeeded doing encryption between client and server.
> > Encryption is done on the client side.
> > but still, i have a problem about some file type(such as WAB file).
> > i trace the MJ_WRITE dispatch routine. I find that during some
> > write operation, the irpsp.parameters.write.length
> > is not aligned by 16 bytes.(My encryption algorithm is 16 bytes
grouping.)
> > so, i do not encrypt the remain bytes. and hence, some bytes of the
buffer
> > are not encrypted.
> >
> > the file types below are supported by my filter:
> > doc,rar,zip,xls,ppt,exe,mdb, and of course,all the plain text file
types.
> >
> > –
> > No one knows what tomorrow would be,
> > but I’ll do my best.
> >
> > —
> > Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@alfasp.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> –
> Kind regards, Dejan M. MVP for DDK
> http://www.alfasp.com E-mail: xxxxx@alfasp.com
> Alfa Transparent File Encryptor - Transparent file encryption services.
> Alfa File Protector - File protection and hiding library for Win32
developers.
> Alfa File Monitor - File monitoring library for Win32 developers.
>
>
>