summaryrefslogtreecommitdiff
path: root/lib/namespace
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-10-29 21:49:24 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-10-29 21:49:24 +0100
commitc021390e218066ca01828917dd940dff26ceff3b (patch)
tree56ffd5610c966d0103f133cd7f4d8910045b0f45 /lib/namespace
parent77757dbdb197f09454c73e285439b810030b9414 (diff)
downloadplan9front-c021390e218066ca01828917dd940dff26ceff3b.tar.xz
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.
Diffstat (limited to 'lib/namespace')
0 files changed, 0 insertions, 0 deletions