Multithreaded gpg encryption of files

Werner Koch wk at gnupg.org
Tue Jun 30 14:30:07 CEST 2015


On Tue, 30 Jun 2015 08:52, gnupgpacker at on.yourweb.de said:

> multicore processors is used. Is there an enhancement for using more than
> one core while de-/encrypting files?

OpenPGP uses CFB mode and thus the encryption cannot be parallelized.

However, with a modern Intel processor featuring the AES-NI instructions
the encryption is not the bottleneck anymore.  Make sure to use GnuPG
2.x with Libgcrypt >= 1.6.0 to employ the AES-NI speedup. 

You _may_ be able to speed I/O up a little by changing

  #define IOBUF_BUFFER_SIZE  8192

in gnupg/common/iobuf.c to larger power of 2.  Disabling encryption (-z
0) and running a separate gzip will also make use of more that one core.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list