Increase True Crypt AES performance - gHacks Tech News

Increase True Crypt AES performance

I used the new version of True Crypt which has just been released to encrypt my new external hard drive which has become almost a standard procedure for me to do.

Whenever I buy a new hard drive, I encrypt it entirely with True Crypt. I discovered a method by chance to increase the performance of the AES algorithm in True Crypt.

The solution is a little bit complicated because you have to compile a source to get it to work. The benefit however is a much better performance of that algorithm which has been programmed in Assembler in comparison to the one programmed in C that True Crypt is using by default.

The increase is amazing. The bandwidth increases by about 20 MB/s from 66 MB/s to 85 MB/s on the system of the user who discovered it. It depends on the hard drive of course but everyone should see a gain in the end.

true crypt benchmark

You will need the following to compile the algorithm source and True Crypt:

  • Microsoft Visual Studio 2005 with SP1
  • Microsoft Visual C++ 1.52
  • Windows Driver Development Kit (DDK) Vista Build 6000
  • YASM

You can read the full instructions in this thread. I was not able to locate a precompiled version of True Crypt with this faster AES algorithm yet. If anyone comes up with a trustworthy download source let me know. I unfortunately do not have Microsoft Visual Studio 2005.

Update: The developers of True Crypt have added hardware AES protection to True Crypt 7.0 which boosts the performance of encrypting drives significantly on systems that are compatible with the application.

The increase can reach up to eight times the performance of software encryption. Note that the cpu needs to support AES hardware encryption which is currently supported by processors that support Intel AES-NI instructions.

Update 2: True Crypt is no longer available. The project has been retired. We suggest you use Vera Crypt, a successor based on True Crypt code instead.

Summary
Increase True Crypt AES performance
Article Name
Increase True Crypt AES performance
Description
Find out how to improve the AES encryption performance of the True Crypt encryption software to speed up encryption jobs.
Author
Publisher
Ghacks Technology News
Logo

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. gokudomatic said on March 8, 2008 at 2:13 am
    Reply

    why won’t you give us a link to your compiled version?
    I haven’t and I don’t wanna install the gigantic visual studio just for one single compilation where I’m not even sure that will work at the first try.

  2. tash said on March 11, 2008 at 5:05 am
    Reply

    I’m surprised noone’s done this yet and posted a compiled version..
    When I get on my laptop later tonight with VS I’ll download the code and see if I can get it all to compile and work. I’ll try to optimize a 64bit version too.

    I’ll leave another comment if it all works out with the download links :]

  3. Martin said on March 11, 2008 at 10:05 am
    Reply

    That would be awesome Tash

  4. Martin said on March 11, 2008 at 3:40 pm
    Reply

    A new True Crypt version has been released that is said to increase the AES performance in Windows by up to 90%. Maybe they did implement the faster algorithm ?

  5. tash said on March 11, 2008 at 9:56 pm
    Reply

    You’re right Martin. The 5.1 version of truecrypt includes the asm implementation of aes that you linked to here. I figured something as easy as that would almost have to be adopted into their development

  6. Eugene said on March 10, 2009 at 8:34 pm
    Reply

    Thank you Martin for this post

    Could you please help me.
    I’m trying to compile TrueCrypt for Windows but I found only MSVC 1.5 not 1.52. And during compilation of Boot project I got following error:

    fatal error C1008: no input file specified
    NMAKE : U1077: c:\msvc15\bin\cl.exe:

    during execution of
    c:\msvc15\bin\cl.exe /nologo /W2 /Fc /I “c:\msvc15\Include” /I”..\..\..” /I”..\..\..\Common” /I”..\..\..\Crypto” /D __int8=char /D __int16=int /D __int32=long /D BOOL=__int32 /D FALSE=0 /D TRUE=1 /D LITTLE_ENDIAN=1234 /D BYTE_ORDER=1234 /D TC_WINDOWS_BOOT /D TC_MINIMIZE_CODE_SIZE /D TC_NO_COMPILER_INT64 /D malloc=malloc_NA /AT /Zl /f- /G3 /Oe /Os /Ob1 /OV0 /Gs /Gf /Gy /D NDEBUG /D TC_ASM_PREPROCESS /P /EP “..\BootDefs.h”

    Should I find 1.52 of MSVC to fix this problem?

    Thank you

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.