summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Make GHASH more robust against timing attacks.Legrandin2014-06-221-0/+1
| | | | | | | | | | | | | | | | | | | | | In order to speed up as much as possible the GHASH, the current implementation expands the 16 byte hash key (H) into a table of 64 KBytes. However, that is sensitive to cache-based timing attacks. If we assume that access to data inside the same cache line is constant-time (likely), fitting a table item into a cache line may help against the attacks. This patch reduce the pre-computed table from 64K to 4K and aligns every item to a 32 byte boundary (since most modern CPUs have cache line of that size or larger). This patch will reduce the overall performance. This patch also reverts commit 965871a727 ("GCM mode: Optimize key setup for GCM mode") since I actually got conflicting benchmark results.
* Make sure that ek and dk are aligned at 16 byte boundariesSebastian Ramacher2013-10-281-0/+1
| | | | | | | | ek and dk are used as operands in instructions that require 16 byte alignment. Thanks to Greg Price for finding this issue. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Use AX_CHECK_COMPILE_FLAG to detect -maesSebastian Ramacher2013-04-271-12/+4
| | | | Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Initial AES-NI supportSebastian Ramacher2013-04-211-1/+19
|
* Include inttypes.h or sys/inttypes.h based on what autoconf tells usDwayne Litzenberger2013-04-211-1/+1
| | | | | This should fix compilation on HP-UX 11.31. Thanks Adam Woodbeck for reporting this.
* OpenBSD: Automatically look for libgmp in /usr/localDwayne Litzenberger2013-02-161-0/+13
|
* Use autoconf to generate compiler optionsDwayne Litzenberger2013-02-161-1/+28
| | | | | | | Hopefully this means we'll break on fewer platforms. Also, remove some of the extra optimization flags (e.g. -O3 -fomit-frame-pointer), which don't really do much.
* Remove automagic dependencies on libgmp and libmpir, let the caller disable ↵oxc2012-01-291-2/+10
| | | | them using args.
* Fix libgmp/libmpir autodetectionDwayne C. Litzenberger2011-10-101-3/+16
|
* autoconf: only use side-channel secured mpz_powm_sec if it's available ↵Dwayne C. Litzenberger2011-10-101-0/+36
(libgmp 5 or later)