plan9fox/sys
cinap_lenrek c021390e21 libsec: rewrite aex_xts_encrypt()/aes_xts_decrypt()
the previous implementation was not portable at all, assuming
little endian in gf_mulx() and that one can cast unaligned
pointers to ulong in xor128(). also the error code is likely
to be ignored, so better abort() when the length is not a
multiple of the AES block size.

we also pass in full AESstate structures now instead of
the expanded key longs, so that we do not need to hardcode
the number of rounds. this allows each indiviaul keys to
be bigger than 128 bit.
2017-10-29 21:49:24 +01:00
..
doc /sys/doc: fix mkfile to and remove files that now can be regenerated 2017-05-09 16:23:48 +02:00
games/lib fortunes: does that me a dipshit 2016-10-16 14:16:17 -04:00
include libsec: rewrite aex_xts_encrypt()/aes_xts_decrypt() 2017-10-29 21:49:24 +01:00
lib hgwebfs: simplify retry loop construction 2017-10-04 05:06:54 +02:00
man libc: cleanup atexit and put exits() in its own compilation unit 2017-10-20 20:58:38 +02:00
src libsec: rewrite aex_xts_encrypt()/aes_xts_decrypt() 2017-10-29 21:49:24 +01:00