plan9fox/sys
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
..
doc /sys/doc: fix mkfile to and remove files that now can be regenerated 2017-05-09 16:23:48 +02:00
games/lib fortunes: Subject: [oss-security] nvi denial of service 2017-12-11 19:36:54 -05:00
include libc: constant time implementation for encode(2) routines, fix base32 2017-12-31 09:06:42 +01:00
lib /sys/lib/rootstub 2017-12-11 19:34:15 -05:00
man libc: constant time implementation for encode(2) routines, fix base32 2017-12-31 09:06:42 +01:00
src libc: constant time implementation for encode(2) routines, fix base32 2017-12-31 09:06:42 +01:00