Instructions for building truecrypt 6.3a in Windows XP

Source: Internet
Author: User

Truecrypt is a free and open-source disk encryption tool that supports Windows 7/Vista/XP In Mac OS X and Linux, you can create one or more virtual disks on the hard disk. files on all Virtual Disks are automatically encrypted and need to be accessed using a password, windows supports system disk and full disk encryption. Truecrypt provides multiple types of EncryptionAlgorithm, Such as AES-256, blowfish, serpent, and other features include support for FAT32 and NTFS partitions, hidden volumes and hotkey boot.

 

To compile truecrypt 6.2a, you only need to followSource codePackage readme.txt step by step, basically no problem. If you do not have vs2008, you can also use vs2005, but you need to modify a small amount of source code. Truecrypt 6.3 starts to support Windows 7. You need to download the new SDK and wdk, and change the assembly compiler from yasm and NASM 0.9x to NASM 2.x. I compile the truecrypt 6.3a source on Windows XP.CodeSome problems have been solved. The installation and configuration steps are as follows:

1. Install Microsoft Visual C ++ 1.52 to the root directory of any disk, for example, C: \ msvc. Do not install it in the following directory: C: \ Program Files \ msvc.

2. Install Microsoft Visual C ++ 2008 SP1. You need to install visual c ++ and Visual C # Or one of visual basic.net. Otherwise, you will encounter the vs2008 compilation bug.

3. Install Microsoft Windows SDK for Windows 7.

After the installation is complete, run Start Menu> Programs> Microsoft Windows SDK v7.0> Visual Studio registration> Windows SDK Configuration tool to confirm that the current SDK version is v7.0, otherwise, an undefined declaration Operator (such as pkey_appusermodel_id) error occurs during compilation.

4. Install Microsoft Windows Driver kit 7.0.0 (build 7600.16385.0). Do not install device simulation framework (DSF ).

If you install DSF and restart the system after the installation is complete, the following error will occur: "The following file is lost or damaged systerm32 \ drivers \ dsfksvcs. sys ". After the restart, the security mode cannot be entered because DSF is installed when wdk is installed. The solution is to restart again, press F8, and select "last normal start ", after entering the system, run the wdk Installation File, remove the check box before DSF, and then install it. That is, the DSF is removed. In this case, wdk is successfully installed.

5. Download the three PKCS #11 cryptographic token interface (cryptoki) 2.20 header files: pkcs11.h, pkcs11f. H, pkcs11t. h.

Ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20

6. Download gzip compressor, decompress it, and put gzip.exe In the System32 directory.

7. download the latest NASM assember and uncompress nasm.exe to the System32 directory.

The NASM version described by readme.txt in the truecryptsource code package is 2.06 or compatible. When compiling x64 assembly files using version 2.06 or 2.07, the "Fatal error lnk1136: Invalid or invalid upt file" error will occur and NASM will crash. The reason is that NASM 2.0 began to support x64 assembly files, which may be mature enough. This bug has been fixed in version 2.08. Versions earlier than truecrypt 6.3 use yasm 0.8 to compile applications.ProgramAnd driver. NASM 0.99 compiles bootloader.

8. Set system variables.

Msvc16_root c: \ msvc
Winddk_root c: \ winddk \ 7600.16385.0

Pkcs11_inc c: \ pkcs11_inc

Note: The system variable value should be the actual installation path and file path.

9. Make sure there are no spaces in the project file path, open the project file, and compile the release or debug version.

10. After the release compilation is successful, you can view three EXE files and two sys files under the \ release \ setup directory. Run CMD in start-> run to start the console. On the console, switch the current directory to the \ release \ setup directory under the truecrypt project file compiled above, run "truecrypt setup.exe"/P to create the truecrypt installation package.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.