cryptonite/cbits/aes
Robert Vollmert b3db979ca0 Fix alignment in gfmul_generic (closes #334)
This fixes a test-suite segfault on Darwin with -O0. Before this change:

$ cabal run -O0 test-cryptonite -- -p AE1
Segmentation fault: 11

with

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   test-cryptonite               	0x0000000108f7f61f gfmul_generic + 47
1   test-cryptonite               	0x0000000108f76f17 ghash_add + 71
2   test-cryptonite               	0x0000000108f743b4 cryptonite_aesni_gcm_encrypt128 + 2244
3   test-cryptonite               	0x0000000108f97f20 cryptonite_aes_gcm_encrypt + 96
4   test-cryptonite               	0x0000000108eeadf5 Lc8Pq_info + 197
2021-09-10 17:50:05 +02:00
..
block128.h Add AES-GCM-SIV 2019-08-25 16:38:01 +02:00
generic.c Fix many cases of unaligned accesses 2017-06-25 18:10:55 +01:00
generic.h cryptonitize AES, and add foreign function interfaces to it (not exported). 2015-04-05 10:44:23 +01:00
gf.c Use conventional declaration order 2020-02-10 06:43:26 +01:00
gf.h AES GCM: use Shoup's method with 4-bit table 2019-06-06 06:48:16 +02:00
x86ni_impl.c AES-NI and PCLMUL with per-function target compiler options 2020-03-14 08:43:44 +01:00
x86ni.c Fix alignment in gfmul_generic (closes #334) 2021-09-10 17:50:05 +02:00
x86ni.h Add flag use_target_attributes 2020-03-14 08:44:44 +01:00