plan9fox/sys/man/2
cinap_lenrek c039b52fc3 libc: constant time implementation for encode(2) routines, fix base32
the string encoding functions touch secret key material
in a bunch of places (devtls, devcap), so make sure we do
not leak information by cache timing side channels, making
the encoding and decoding routines constant time.

we also expose the alphabets through encXchr()/decXchr()
functions so caller can find the end of a encoded string
before calling decode function (for libmp).

the base32 encoding was broken in several ways. inputs
lengths of len%5 == [2,3,4] had output truncated and
it was using non-standard alphabet. documenting the alphabet
change in the manpage.
2017-12-31 09:06:42 +01:00
..
0intro /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
9p /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
9pcmdbuf /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
9pfid /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
9pfile /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
9pqueue /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
abort /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
abs /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
access /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
addpt /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
aes /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
allocimage /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
aml /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
arg /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
arith3 /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
assert /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
atof /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
auth /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
authsrv /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
avl /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
bin /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
bind /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
bio /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
blowfish /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
brk /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
cachechars /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
chacha /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
chdir /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
cleanname /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
color /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
complete /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
control /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
cputime /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
ctime /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
ctype /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
debugger /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
des /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
dial /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
dirread /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
disk /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
draw /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
dsa /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
dup /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
ec /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
elgamal /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
encode libc: constant time implementation for encode(2) routines, fix base32 2017-12-31 09:06:42 +01:00
encrypt /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
errstr /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
event /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
exec /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
exits /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
exp /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fauth /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fcall /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fd2path /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fgetc /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
flate /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
floor /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fmtinstall /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fopen /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fork /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fprintf /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
frame /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
frexp /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fscanf /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
fversion /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getcallerpc /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getenv /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getfcr /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getfields /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getpid /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getuser /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
getwd /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
graphics /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
html /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
httpd /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
hypot /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
intmap /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
ioproc /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
iounit /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
ip /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
isalpharune /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
json /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
keyboard /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
lock /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
mach /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
malloc /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
matrix /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
memdraw /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
memlayer /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
memory /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
mktemp /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
mouse /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
mp /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
muldiv /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
nan /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
ndb /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
notify /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
nusb /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
object /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
open /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
perror /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
pipe /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
plumb /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
pool /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
postnote /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
prime /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
print /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
privalloc /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
proto /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
pushssl /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
pushtls /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
qball /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
qsort /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
quaternion /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
quote /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
rand /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
rc4 /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
read /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
readcolmap /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
readv /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
regexp /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
remove /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
rendezvous /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
rsa /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
rune /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
runestrcat /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
salsa /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
scribble /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
scsi /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
sechash /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
seek /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
segattach /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
segbrk /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
segflush /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
semacquire /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
setjmp /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
sin /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
sinh /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
sleep /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
stat /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
strcat /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
string /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
stringsize /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
subfont /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
symbol /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
thread /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
time /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
tmpfile /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-cache /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-client /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-conn /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-fcall /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-file /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-log /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-mem /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-packet /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-server /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
venti-zero /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
wait /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
window /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00