linux/fs/crypto
Eric Biggers 1c5100a2aa fscrypt: clean up base64 encoding/decoding
Some minor cleanups for the code that base64 encodes and decodes
encrypted filenames and long name digests:

- Rename "digest_{encode,decode}()" => "base64_{encode,decode}()" since
  they are used for filenames too, not just for long name digests.
- Replace 'while' loops with more conventional 'for' loops.
- Use 'u8' for binary data.  Keep 'char' for string data.
- Fully constify the lookup table (pointer was not const).
- Improve comment.

No actual change in behavior.

Signed-off-by: Eric Biggers <ebiggers@google.com>
2019-08-12 19:04:44 -07:00
..
bio.c fscrypt: decrypt only the needed blocks in __fscrypt_decrypt_bio() 2019-05-28 10:27:53 -07:00
crypto.c fscrypt: remove loadable module related code 2019-08-12 19:04:41 -07:00
fname.c fscrypt: clean up base64 encoding/decoding 2019-08-12 19:04:44 -07:00
fscrypt_private.h fscrypt: remove loadable module related code 2019-08-12 19:04:41 -07:00
hooks.c fscrypt: remove unnecessary includes of ratelimit.h 2019-06-10 19:01:33 -07:00
Kconfig fscrypt: remove selection of CONFIG_CRYPTO_SHA256 2019-06-27 10:29:33 -07:00
keyinfo.c fscrypt: remove loadable module related code 2019-08-12 19:04:41 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
policy.c fscrypt: don't set policy for a dead directory 2019-05-28 10:48:23 -07:00