Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 23 Aug 2012 00:44:41 +0200
From: Knug Carl Gustf <erik.andersson1980@...il.com>
To: john-dev@...ts.openwall.com
Subject: [PATCH] Speed up VNC encryption by pre-computing DES_set_odd_parity()

Hello, friends of the computer security industry!

The attached patch speeds up VNC encryption by just over 20% on my
64-bit Apple and Dell devices.
It should apply cleanly to the master branch of the magnum-jumbo tree.

Most of the speed is gained by applying DES_set_odd_parity() to the
bit_flip[] array in advance.  A few more percent increase in speed is
gained by replacing the call to DES_set_key_checked() with a call to
DES_set_key_unchecked().  Unlike the former, the latter neither does
parity nor weak DES key checks.

-- 
With love and respect,
Knug Carl Gustf
(email is borrowed, please call +46-(0)20-795611 for inquires)
Swedish Civil Contingencies Agency
SE-651 81 KARLSTAD
Sweden
Switchboard: +46-(0)20-795611
Fax: +46-(0)10-2405600

[ CONTENT OF TYPE application/octet-stream SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ