[tor-bugs] #5696 [Tor Relay]: AESNI not in use with openssl 1.0.1 on tor 0.2.3.14-alpha
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Mon Apr 30 14:34:59 UTC 2012
#5696: AESNI not in use with openssl 1.0.1 on tor 0.2.3.14-alpha
-------------------------+--------------------------------------------------
Reporter: cypherpunks | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Relay | Version: Tor: 0.2.3.14-alpha
Keywords: aesni | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by nickm):
Hm. So according to the openssl code in evp/e_aes.c, it really looks like
AESNI _should_ be getting used where possible. If you can use a debugger,
could you please tell me the contents of (OPENSSL_ia32cap_P[1]) ? If
not, could somebody else with an AESNI-compatible chip have a look?
(Looking at the code: when we call EVP_aes_128_ctr(), OpenSSL 1.0.1 calls
{{{
{ return AESNI_CAPABLE?&aesni_##keylen##_##mode:&aes_##keylen##_##mode; }
}}}
And AESNI_CAPABLE is defined as:
{{{
#define AESNI_CAPABLE (OPENSSL_ia32cap_P[1]&(1<<(57-32)))
}}}
Also, can anybody else with an aesni cpu confirm this?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5696#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list