plan9fox/sys/man/2
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
..
0intro Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
9p fix typo in 9p(2) manpage 2017-04-03 00:11:40 +00:00
9pcmdbuf manpage references/typos 2016-03-01 15:24:07 -05:00
9pfid Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
9pfile lib9p: allow rewinding in 9pfile directories 2017-04-30 01:49:21 +02:00
9pqueue lib9p: add reqqueuefree 2015-10-12 10:41:40 +02:00
abort Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
abs Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
access Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
addpt addpt(2): put badrect in .SH NAME so that it gets into the searchindex 2015-06-09 12:32:38 +02:00
aes libsec: AES-NI support for amd64 2017-11-12 23:15:15 +01:00
allocimage libdraw: sync allocimage/allocwindow prototypes with man pages 2015-06-09 10:33:30 +02:00
aml aml(2): document amlintmask 2016-06-05 15:15:03 +02:00
arg Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
arith3 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
assert Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
atof libc: make atoi() not parse c-style octal and hex numbers 2015-08-03 18:10:53 +02:00
auth auth(2): fix prototype for auth_getinfo() in manual page 2015-01-25 07:40:52 +01:00
authsrv authsrv(2): update Nvrsafe structure to include aesmachkey 2016-09-08 10:40:19 +02:00
avl libavl: fix documentation 2017-04-24 10:50:03 -05:00
bin bin(2): fix tab formatting 2014-12-31 23:45:05 -08:00
bind Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
bio bio(2): manpage typo 2017-05-04 17:47:03 +00:00
blowfish Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
brk Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
cachechars Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
chacha libsec: implement extended 192-bit nonce xchacha variant and hchacha function 2017-01-12 20:16:38 +01:00
chdir Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
cleanname Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
color Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
complete Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
control control(2): spelling 2014-02-24 13:02:54 -08:00
cputime cputime(2): fix prototype for cycles() (thanks qrstuv) 2015-05-28 18:11:45 +02:00
ctime ctime(2): fix example (thanks raiz) 2017-05-03 20:47:46 +02:00
ctype Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
debugger fix <mach.h> types in manual (erik quanstros machmantype patch) 2013-04-25 00:13:19 +02:00
des Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
dial dial(2): not in parallel on 9front 2012-06-25 16:53:33 +02:00
dirread Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
disk Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
draw libdraw: add missing borderop() (thanks aiju) 2014-07-21 18:10:58 +02:00
dsa Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
dup Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
ec ec(2), rsa(2): document X509toECpub(), X509ecdsaverify(), X509ecdsaverifydigest(), X509rsaverifydigest() 2017-02-10 22:39:47 +01:00
elgamal Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
encode encode(2): clarify lim argument to enc*(), add SOURCE reference for encodefmt() 2015-03-11 17:48:24 +01:00
encrypt Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
errstr Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
event esetcursor(2), alarm(2): fix prototypes 2015-06-09 12:29:57 +02:00
exec exec(2): return register (R0) contains address of Tos structure. 2015-06-19 09:02:59 +02:00
exits libc: cleanup atexit and put exits() in its own compilation unit 2017-10-20 20:58:38 +02:00
exp Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fauth Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fcall man pages: the the wich 2014-04-26 01:47:36 +02:00
fd2path Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fgetc Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
flate Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
floor Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fmtinstall Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fopen Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fork Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fprintf Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
frame Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
frexp Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fscanf Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fversion Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
getcallerpc Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
getenv Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
getfcr Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
getfields getfields(2): add missing SOURCE file 2014-04-01 13:12:23 -04:00
getpid Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
getuser Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
getwd Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
graphics Corrected some man pages. 2014-01-17 19:15:24 +01:00
html Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
httpd Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
hypot Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
intmap Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
ioproc ioproc(2): document iosleep 2011-08-26 10:06:10 +02:00
iounit Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
ip Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
isalpharune Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
json libjson: added printing support (thanks spew) 2015-12-22 18:12:56 +01:00
keyboard Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lock Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mach man pages: the the wich 2014-04-26 01:47:36 +02:00
malloc man pages: fix duplicate words 2014-04-26 13:22:15 +02:00
matrix Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
memdraw manpage references/typos 2016-03-01 15:24:07 -05:00
memlayer memlayer(2): fix memdraw signature 2014-12-28 12:14:24 -08:00
memory Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mktemp Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mouse mouse(2): fix atomouse (thanks qrstuv) 2014-11-06 04:59:07 +01:00
mp mp: fix mpnot and add mpasr 2016-08-28 10:49:41 +02:00
muldiv Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
nan Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
ndb ndb(2): fix wrong attr names 2013-02-22 22:52:52 +01:00
notify add reference to postnote(2) in notify(2) 2011-04-23 18:33:49 +02:00
nusb fix manpage references 2016-01-12 08:43:36 +01:00
object fix <mach.h> types in manual (erik quanstros machmantype patch) 2013-04-25 00:13:19 +02:00
open open(2): fix typo 2015-07-01 21:46:47 -04:00
perror Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
pipe Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
plumb plumb(2): Fix typo in description of Plumbdelattr (thanks sam-d) 2017-03-22 18:13:51 -05:00
pool libc: add poolisoverlap() and definitions for Pool *secrmem 2016-08-27 20:23:55 +02:00
postnote Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
prime Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
print print(2): clean up vlong flag description 2017-07-02 19:12:50 +01:00
privalloc libc: remove privfree(), simplify privalloc() 2015-09-06 20:43:05 +02:00
proto man pages: the the wich 2014-04-26 01:47:36 +02:00
pushssl pushssl(2), pushtls(2): clarify filedescriptor closing 2013-09-20 17:44:14 +02:00
pushtls libsec: sha256 support for thumbprint files, use it in ssh as well 2017-04-23 19:00:08 +02:00
qball qball(2): fix bad manpage reference 2016-04-07 21:51:56 +02:00
qsort Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
quaternion Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
quote Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
rand libsec: replace des based X9.17 genrandom() with chacha random number generator 2016-12-28 02:02:00 +01:00
rc4 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
read Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
readcolmap freeimage(2), readcolmap(2), writecolmap(2): fix prototypes 2015-06-09 23:23:00 +02:00
readv Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
regexp libregexp: miscellaneous little cleanups 2017-04-30 15:08:36 -05:00
remove Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
rendezvous Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
rsa ec(2), rsa(2): document X509toECpub(), X509ecdsaverify(), X509ecdsaverifydigest(), X509rsaverifydigest() 2017-02-10 22:39:47 +01:00
rune rune(2): add Runeerror reencoding considerations in BUGS section (thanks aiju) 2016-04-28 01:53:09 +02:00
runestrcat Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
salsa salsa(2): fix source reference 2016-01-19 13:06:22 +01:00
scribble scribble(2): quashed false claims of quick-reference decadance. 2014-02-25 20:05:34 +00:00
scsi Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
sechash libsec: add poly1305 2015-10-22 07:17:25 +02:00
seek Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
segattach Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
segbrk kernel: use uintptr for ibrk() return value (for base >2GB) and clarify segbrk(2) 2015-12-16 21:06:51 +01:00
segflush Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
semacquire tsemacquire: manpage and syscallfmt 2012-07-30 22:45:49 +02:00
setjmp Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
sin Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
sinh Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
sleep esetcursor(2), alarm(2): fix prototypes 2015-06-09 12:29:57 +02:00
stat Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
strcat strcat(2): fix strchr() and strrchr() function prototypes (thanks BurnZeZ) 2014-12-07 14:26:41 +01:00
string Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
stringsize Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
subfont libdraw: sync allocimage/allocwindow prototypes with man pages 2015-06-09 10:33:30 +02:00
symbol fix <mach.h> types in manual (erik quanstros machmantype patch) 2013-04-25 00:13:19 +02:00
thread thread(2): threadgrp() -> threadgetgrp(), thanks jpm 2016-08-06 15:09:18 +02:00
time libc: dont cache /dev/bintime filedescriptor for nsec() 2014-05-20 05:01:26 +02:00
tmpfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-cache Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-client Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-conn Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-fcall Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-file Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-log Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-mem Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-packet Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-server Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
venti-zero Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
wait Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
window libdraw: sync allocimage/allocwindow prototypes with man pages 2015-06-09 10:33:30 +02:00