summaryrefslogtreecommitdiff
path: root/src/AESNI.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix compilation with clang-3.3Sebastian Ramacher2014-06-221-8/+9
| | | | | | clang-3.3 is stricter regarding the second argument of _mm_shuffle_epi32. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* AESNI: Fix order of alignment & size args in _aligned_mallocDwayne Litzenberger2014-02-221-1/+5
|
* Clean up AESNI aligned malloc() wrappersDwayne Litzenberger2014-02-221-33/+22
| | | | | | | - Set errno properly when using posix_memalign - Rename to aligned_malloc_wrapper / aligned_free_wrapper - Use a single set of #if blocks, to avoid the possibility of mismatching them.
* Prefer C11's aligned_alloc if it is availableSebastian Ramacher2014-02-221-4/+4
| | | | Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Check return value of posix_memalignSebastian Ramacher2014-02-221-1/+3
| | | | Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Add wrapper for freeSebastian Ramacher2014-02-221-6/+19
| | | | | | | For _aligned_malloc calling free is illegal. We need to use_aligned_free instead. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Add a wrapper for posix_memalign and friendsSebastian Ramacher2013-10-281-17/+22
| | | | | | This also fixes the order of arguments passed to _aligned_malloc. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Make sure that ek and dk are aligned at 16 byte boundariesSebastian Ramacher2013-10-281-4/+44
| | | | | | | | 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>
* Add block_finalize to clean up block_state from ALGdeallocSebastian Ramacher2013-10-281-0/+4
| | | | | | This is the counterpart to block_init which is called from ALGnew. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Be more consistent with spaces and tabsSebastian Ramacher2013-10-281-13/+13
| | | | Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
* Remove unnecessary includesSebastian Ramacher2013-04-211-2/+0
|
* Initial AES-NI supportSebastian Ramacher2013-04-211-0/+227