lib/base64: RFC4648-compliant base64 encoding
authorHannes Reinecke <hare@suse.de>
Mon, 27 Jun 2022 09:51:59 +0000 (11:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 16:14:24 +0000 (18:14 +0200)
commitc603e3e98393e73a55a14379b382cb99208f372a
treea3611a6b50c4326c79034cf299c338f3e63b4e01
parentde83cc791efb12edc33e47399d968ba8e4d214f3
lib/base64: RFC4648-compliant base64 encoding

Add RFC4648-compliant base64 encoding and decoding routines, based on
the base64url encoding in fs/crypto/fname.c.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/base64.h [new file with mode: 0644]
lib/Makefile
lib/base64.c [new file with mode: 0644]