Download A Secure File System Based on

Transcript
on disk directly. They just deal with some kinds of data structures in the system memory.
How to modify the functions listed above to implement security object will be presented
in the section 4.4.2.2.2.
4.4.2.2.1 Secure Functions
Security requires alterations to two respects of implementation. One is encryption and
decryption by Blowfish. It can keep data from being read by unauthorized users. The
other is detection, using SHA-1, to determine if a data file has been tampered. Regardless
of the data structures mentioned above, all the functions that directly manipulate the data
structures of a database on disk need to implement these two operations for security. A
new C file readwrite.c was created with a number of functions that focus on these two
security objects and will be invoked by some of the functions that manipulate data
structures of a database directly. These secure functions are as follows:
Function:
char * GetUserPwdKey();
char * GetHarddiskKey();
char * GetPSNKey();
char * gdbm_GetBlowfishKey( );
These functions are used to generate keys for the Blowfish encryption or decryption in
SGDBM. The components of these keys have been presented in detail in the section
4.1.1. A key consists of three parts: the encrypted user’s login password, the serial
number of the first IDE hard disk and the processor serial number (PSN) of the CPU
currently used. The first three functions are implemented to get these three parts of the
62