plan9fox/sys/include/ape
cinap_lenrek 3356e0e731 libsec: AES-NI support for amd64
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.
2017-11-12 23:15:15 +01:00
..
arpa
netinet
sys
ar.h
assert.h
auth.h ape: add libauth, libbio, libmp and libsec as replacements for openssl 2016-04-11 20:23:34 +02:00
bio.h update ape/bio.h (thanks jpm) 2017-05-06 14:33:52 +00:00
bsd.h
bzlib.h
ctype.h
cursor.h
dirent.h ape: add d_stat struct in dirent struct allowing the avoidance of stats 2016-08-28 03:39:49 +02:00
draw.h libdraw: get rid of _drawdebug variable 2017-04-29 21:03:52 +02:00
errno.h
error.h
event.h
fcntl.h
fmt.h
grp.h
inttypes.h ape: add stdint.h, fix SSIZE_MAX and add SIZE_MAX to limits.h 2015-07-13 02:36:48 +02:00
keyboard.h
lib9.h
libl.h
libnet.h
libsec.h libsec: AES-NI support for amd64 2017-11-12 23:15:15 +01:00
libv.h
limits.h ape: add stdint.h, fix SSIZE_MAX and add SIZE_MAX to limits.h 2015-07-13 02:36:48 +02:00
locale.h
lock.h
mouse.h
mp.h ape: add libauth, libbio, libmp and libsec as replacements for openssl 2016-04-11 20:23:34 +02:00
netdb.h
Plan9libnet.h
pwd.h
qlock.h libc: improve alignment of QLp structure on amd64, cosmetics 2017-10-28 18:53:27 +02:00
select.h
setjmp.h
signal.h
stddef.h
stdint.h ape: add stdint.h, fix SSIZE_MAX and add SIZE_MAX to limits.h 2015-07-13 02:36:48 +02:00
stdio.h
stdlib.h ape: set MB_CUR_MAX to 4 in stdlib.h for 21-bit runes (thanks erik quanstro) 2015-09-29 15:17:21 +02:00
string.h
termios.h
time.h ape: implement altzone for tzset() 2015-08-04 02:01:41 +02:00
u.h ape: add libauth, libbio, libmp and libsec as replacements for openssl 2016-04-11 20:23:34 +02:00
unistd.h
utf.h
utime.h
zlib.h