3356e0e731
Add assembler versions for aes_encrypt/aes_decrypt and the key setup using AES-NI instruction set. This makes aes_encrypt and aes_decrypt into function pointers which get initialized by the first call to setupAESstate(). Note that the expanded round key words are *NOT* stored in big endian order as with the portable implementation. For that reason the AESstate.ekey and AESstate.dkey fields have been changed to void* forcing an error when someone is accessing the roundkey words. One offender was aesXCBmac, which doesnt appear to be used and the code looks horrible so it has been deleted. The AES-NI implementation is for amd64 only as it requires the kernel to save/restore the FPU state across syscalls and pagefaults. |
||
---|---|---|
.. | ||
arpa | ||
netinet | ||
sys | ||
ar.h | ||
assert.h | ||
auth.h | ||
bio.h | ||
bsd.h | ||
bzlib.h | ||
ctype.h | ||
cursor.h | ||
dirent.h | ||
draw.h | ||
errno.h | ||
error.h | ||
event.h | ||
fcntl.h | ||
fmt.h | ||
grp.h | ||
inttypes.h | ||
keyboard.h | ||
lib9.h | ||
libl.h | ||
libnet.h | ||
libsec.h | ||
libv.h | ||
limits.h | ||
locale.h | ||
lock.h | ||
mouse.h | ||
mp.h | ||
netdb.h | ||
Plan9libnet.h | ||
pwd.h | ||
qlock.h | ||
select.h | ||
setjmp.h | ||
signal.h | ||
stddef.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
string.h | ||
termios.h | ||
time.h | ||
u.h | ||
unistd.h | ||
utf.h | ||
utime.h | ||
zlib.h |