summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/9/libc.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-12-31 09:06:42 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-12-31 09:06:42 +0100
commitc039b52fc3d7c225fe8b6f88f21df83ac26d5984 (patch)
treebed796d3111679d359851521644fbbee2378f200 /sys/src/ape/lib/9/libc.h
parentee89c82dd35475b93dd67773b7d10e461921a734 (diff)
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.
Diffstat (limited to 'sys/src/ape/lib/9/libc.h')
0 files changed, 0 insertions, 0 deletions