lib/base64: RFC4648-compliant base64 encoding
authorHannes Reinecke <hare@suse.de>
Mon, 27 Jun 2022 09:51:59 +0000 (11:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:47 +0000 (17:14 -0600)
commita116e1cdc64a743c36c40e6fa639dec991c157a3
tree06203e96d2cf80d2dec7b2a72c1e83acd08cfce2
parent9e2f284e149124aa9a6b963882d2b39ae1742196
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/base64.h [new file with mode: 0644]
lib/Makefile
lib/base64.c [new file with mode: 0644]