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 ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo() 2013-03-31 18:52:45 +02:00
netinet ape: add inet_aton() 2013-04-01 19:16:18 +02:00
sys ape: include <sys/types.h> in <sys/wait.h> for pid_t (thanks jens staal) 2015-05-27 21:48:42 +02:00
ar.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
assert.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 ape: move strdup() from libbsd to libap (from sources) 2013-12-28 05:14:10 +01:00
bzlib.h add zlib, bzlib and openssl ape ports 2011-05-03 09:56:35 +00:00
ctype.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
cursor.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 python: update python build configuration to new ape capabilities like getaddrinfo(), ipv6 and fix EISCON typo in ape 2013-03-31 18:54:45 +02:00
error.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
event.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fcntl.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fmt.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
grp.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lib9.h ape: change types from unsigned long to void* for rendezvous() and segattach()/segbrk() (erik), use uniqueue rendezvous tags for _buf and listen 2013-05-11 18:34:40 +02:00
libl.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
libnet.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
libsec.h libsec: AES-NI support for amd64 2017-11-12 23:15:15 +01:00
libv.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lock.h reverting semaphore lock changes from sources (r41ccd6d221da, rb28756e5ba29) 2013-09-26 22:24:31 +02:00
mouse.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mp.h ape: add libauth, libbio, libmp and libsec as replacements for openssl 2016-04-11 20:23:34 +02:00
netdb.h ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo() 2013-03-31 18:52:45 +02:00
Plan9libnet.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
pwd.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
qlock.h libc: improve alignment of QLp structure on amd64, cosmetics 2017-10-28 18:53:27 +02:00
select.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
setjmp.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
signal.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
stddef.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 ape: move strdup() from libbsd to libap (from sources) 2013-12-28 05:14:10 +01:00
termios.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
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 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
utf.h change Rune from ushort to uint for to 21 bit runes (thanks mischief!) 2013-10-17 12:02:45 +02:00
utime.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
zlib.h add zlib, bzlib and openssl ape ports 2011-05-03 09:56:35 +00:00