阅读:4485回复:22
利用驱动程序给Usb硬盘加密!--高手请指点!(40)分
我想改微软的Umss for 98,在98下利用这个驱动程序对硬盘进行加密。
思想是当写usb硬盘的时候加密数据,在写usb硬盘。 当读usb硬盘的时候,将读出来的数据进行解密。 中间过程对上层vxd,win32透明! 问题是如何获得写硬盘和读硬盘的数据! |
|
沙发#
发布于:2002-04-23 11:39
I am very happy you had read this sample.
yes,it\'s not a pure wdm drive,the another depart is vxd. but i am not familiar with vxd.I even do not know the vxd. but I think one depart is wdm,I can only modify this part, the function Umss_Buffertransfer i think is tranfering the data,but I can not get the right data.espcailly the IN DATA and the OUT DATA is not right. why? |
|
板凳#
发布于:2002-04-23 11:16
> but why not directly encrypt the data.
Becauz the performance and develop time if u care!!! > filter drive can add function,such as compress and > encrypt,to a equipment,other then modify the lower device > drive. I can\'t give u more info,becauz it\'s complex to me about the encrypt. > the first way is Modifying this sample,which is my best > wish to Directly encrypt the transfer data. I ever study the sample, but it\'s VxD,not WDM. I give it up.Just Re-writing the dirver now.!!! > the second way is write a new filter drive,which I do not > wish,because I am a new hand for writing device driver. No!! Then I think just modify the r/w function of the sample. [编辑 - 4/23/02 作者: Nouk] |
|
|
地板#
发布于:2002-04-23 10:10
but why not directly encrypt the data.
from the book \"The Windows NT Device Driver Book:A Guide for Programmers\" a sentence is that: a filter drive can add function,such as compress and encrypt,to a equipment,other then modify the lower device drive. now I have the Microsoft a sample to r/w a easydisk(usb). the first way is Modifying this sample,which is my best wish to Directly encrypt the transfer data. the second way is write a new filter drive,which I do not wish,because I am a new hand for writing device driver. maybe the third way is doing as you said,add some valudate function in this sample,but I think maybe it\'s more difficult. All the Problems is I have not time to leave. Do you have some example for me? If Have,Could you give it to me. thank you very much! |
|
地下室#
发布于:2002-04-23 09:46
> 1.save orginal KEY :
> the way is using the Register table,yep? May be or other tips. > 2.hash value in usb: > Is it a funciton in the driver? yes,it\'s a function,be in driver or app. Before r/w,must be matched the value. if not,return error. |
|
|
5楼#
发布于:2002-04-22 16:19
版主:你的意见如何?
给个答复好吗? |
|
6楼#
发布于:2002-04-22 12:34
thank you very very much for your advise.
from your advise: 1.save orginal KEY : the way is using the Register table,yep? but how can do this by writing a dirver or writing it\'s setup file? 2.hash value in usb: Is It a funciton in the driver? let look the driver module:when a win32 app. send a r/w I/O request,it send to the I/O manage organ,and the I/O manage organ send to the right dirver. yep? for a driver,there is not \"main\" or \"Winmain()\" function. so,It depends the I/O manage organ call the function the driver write. you means is add a validing funtion to the r/w function before preform the actully r/w. whether I get your means or not? I get the Windows 98 USB Mass Storage Sample Driver from microsoft.I read it\'s source,and I think the r/w function is umss_bulktransfer function.give me some advise,thz. I just want to change something about this exmaple to complete myquestion. what shall i do? |
|
7楼#
发布于:2002-04-22 11:47
I know urs. I ever get some info abot the kind of products. 1.The flash can be removable disk. 2.The flash can be dongle/keypro,too (It should be what u want to do) May like \"Virtual CD\",the driver simulates it. ==================================================== Some idea that: Don\'t direct encrypt ur data. To save orginal KEY in PC and hash value in USB. If the driver match the function, then it\'ll be used. |
|
|
8楼#
发布于:2002-04-22 11:24
thank you very much.
I get your means. but my boss give me a question is that if you have not the usb driver you can not read or write the usb harddisk envnif you put the usb harddisk to another pc. if you have not driver you you can not get the right data. what shall i do? |
|
9楼#
发布于:2002-04-22 11:11
It\'s different.
The way to encrypt the data is complex. The ez way is to author the pwd that the user typed. If right,then unlock the media. F/W is firmware. The USB follow SCSI cmd sets. ASPI is SCSI interface. |
|
|
10楼#
发布于:2002-04-22 10:53
ok.
let\'s begin. first, what\'s the way which usb harddisk read or write---Direct I/O,or Buffer. you said that i should use F/W may lock or unlock. I don\'t know what is the F/W,but I know the DMA(Direct way) ask for lock and unlock. second,what is ASPI.how the driver use? third,have you any example.if you have ,could you give me. thz very much. |
|
11楼#
发布于:2002-04-22 10:33
and icq? I send the secret message by the forum. |
|
|
12楼#
发布于:2002-04-22 10:20
and icq?
I need to settle this question quickly. I need your help! |
|
13楼#
发布于:2002-04-22 10:14
hi,Nouk. Sorry, I don\'t have OICQ. |
|
|
14楼#
发布于:2002-04-22 10:06
hi,Nouk.
are you here? i want to chat with you online. Have you QQ number or email address? I am a new hand,I need help. my qq number is 38580353,and email is danier@km169.net, and you? thz. |
|
15楼#
发布于:2002-04-22 09:55
[quote]ur F/W may lock or unlock to have security. Hi Nouk, I know some products have this features. Could you pls tell us how they implement this? In windows driver or firmware? Thanks [/quote] The F/W must implement the lock/unlock cmds. And driver or win app to send ASPI cmds to use it. |
|
|
16楼#
发布于:2002-04-22 09:40
非常感谢各位的指导。怎么不能给分了?
但是,能不能具体说明一下如何实现的。 还有楼上的那位大虾Nouk,那个Taiwan\'s Driver Developer在那里? |
|
17楼#
发布于:2002-04-22 09:05
ur F/W may lock or unlock to have security. Hi Nouk, I know some products have this features. Could you pls tell us how they implement this? In windows driver or firmware? Thanks |
|
|
18楼#
发布于:2002-04-22 09:02
这个方法我已经试过了,出现了问题! 原因很简单:所有的file i/o命令都是被封装在scsi命令中的,你要从scsi命令中分解出真正的read/write的数据。而这些数据有可能并不是真正的文件的内容! |
|
|
19楼#
发布于:2002-04-19 17:24
ur F/W may lock or unlock to have security.
|
|
|
上一页
下一页