summaryrefslogtreecommitdiff
path: root/fs/crypto/hooks.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-07-24 11:07:58 -0700
committerEric Biggers <ebiggers@google.com>2019-08-12 19:04:44 -0700
commit1c5100a2aab4143f36ca671c28189a8734d5381a (patch)
tree6ef8a4ddd144f97d0d4dd3b61fef21912dfb4d4b /fs/crypto/hooks.c
parent75798f85f2badb04074cc909dbbb93072f4041ff (diff)
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>
Diffstat (limited to 'fs/crypto/hooks.c')
0 files changed, 0 insertions, 0 deletions