aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/mem_ops.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Missing include, noticed by OS XJack Lloyd2017-09-291-0/+1
|
* In secure_allocator, hide mlock/new usage in a function in mem_opsJack Lloyd2017-09-291-0/+32
| | | | | | | Switch to calloc/free instead of new/delete - shouldn't matter since we are only allocate integral types. This change reduces the size of libbotan-2.so by ~300 Kb on my system.
* Fix an off by 8Jack Lloyd2017-09-161-1/+1
|
* Revert SIMDing of xor_buf in f39aa7bbJack Lloyd2017-09-161-29/+27
| | | | | | | | | Forgot this causes all kinds of issues when the SIMD ISA is not part of the base instruction set (needing -maltivec, etc). It just happens to work on x86-64 because SSE2 is part of the base ISA there. Instead just unroll by 16x this seems to be enough that GCC figures it out.
* De-inline xor_buf, add SIMD and unrollingJack Lloyd2017-09-161-0/+86
| | | | Improves CBC and OCB performance with AES-NI quite noticably
* Move secure_scrub_memory to os_utils.cppJack Lloyd2017-09-031-39/+0
|
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-1/+1
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* define NOMINMAX 1 before every include of windows.hBaruch Burstein2016-11-281-0/+1
|
* Rename zero_mem to secure_scrub_memoryJack Lloyd2016-11-031-0/+38