Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-07-03 | libc: add encode(2) variants for custom alphabets | Ori Bernstein | |
There are a number of alphabets in common use for base32 and base64 encoding, such as url-safe encodings. This adds support for passing a function to encode into arbitary alphabets. | |||
2017-12-31 | libc: constant time implementation for encode(2) routines, fix base32 | cinap_lenrek | |
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-11 | /sys/man/*/*: fix perms (sorry) | stanley lieber | |
2017-12-11 | /sys/lib/rootstub | stanley lieber | |
2015-03-11 | encode(2): clarify lim argument to enc*(), add SOURCE reference for encodefmt() | cinap_lenrek | |
2011-03-30 | Import sources from 2011-03-30 iso image - lib | Taru Karttunen | |
2011-03-30 | Import sources from 2011-03-30 iso image - sys/man | Taru Karttunen | |