[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #4442 [Tor Relay]: The crypto in aes.c should use openssl's EVP_ functions.
#4442: The crypto in aes.c should use openssl's EVP_ functions.
-------------------------+--------------------------------------------------
Reporter: nickm | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: Tor: 0.2.3.x-final
Component: Tor Relay | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by Sebastian):
yeah, I ran the benchmarks before and after this branch (except that I
added the patch to make it work, of course). I don't have aes-ni, and the
results were exactly the same:
{{{
bench_aes: 1 bytes: 15 nsec per byte
2 bytes: 11 nsec per byte
4 bytes: 8 nsec per byte
8 bytes: 7 nsec per byte
16 bytes: 7 nsec per byte
32 bytes: 6 nsec per byte
64 bytes: 6 nsec per byte
128 bytes: 6 nsec per byte
256 bytes: 6 nsec per byte
512 bytes: 6 nsec per byte
1024 bytes: 6 nsec per byte
2048 bytes: 6 nsec per byte
4096 bytes: 6 nsec per byte
8192 bytes: 6 nsec per byte
}}}
So I guess it doesn't matter whether we use openssl's AES_ or EVP_
functions for the non-engine case.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4442#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs