libotutil: Import implementation of zbase32 encoding
authorDan Nicholson <nicholson@endlessm.com>
Mon, 26 Aug 2019 16:09:57 +0000 (10:09 -0600)
committerDan Nicholson <dbn@endlessos.org>
Thu, 15 Jul 2021 21:50:04 +0000 (15:50 -0600)
commitfbff05e28d0e0d3c8424a7d4a5652a253a553b04
treec21802b3a1a0700d467d2910c71e9695b0e5e2ba
parent74fb0c5f7826e90efcc905ba75cf8a176d61f0a5
libotutil: Import implementation of zbase32 encoding

This will be used to implement the PGP Web Key Directory (WKD) URL
generation. This is a slightly cleaned up implementation[1] taken from
the zbase32 author's original implementation[2]. It provides a single
zbase32_encode API to convert a set of bytes to the zbase32 encoding.

I believe this should be acceptable for inclusion in ostree. The license
in the source files is BSD style while the original repo LICENSE file
claims the Creative Commons CC0 1.0 Universal license, which is public
domain.

1. https://github.com/dbnicholson/libbase32/tree/for-ostree
2. https://github.com/zooko/libbase32
Makefile-otutil.am
src/libotutil/zbase32.c [new file with mode: 0644]
src/libotutil/zbase32.h [new file with mode: 0644]