diff options
author | Eric Biggers <ebiggers@google.com> | 2019-07-24 11:07:58 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2019-08-12 19:04:44 -0700 |
commit | 1c5100a2aab4143f36ca671c28189a8734d5381a (patch) | |
tree | 6ef8a4ddd144f97d0d4dd3b61fef21912dfb4d4b /samples/vfs | |
parent | 75798f85f2badb04074cc909dbbb93072f4041ff (diff) | |
download | linux-1c5100a2aab4143f36ca671c28189a8734d5381a.tar.bz2 |
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 'samples/vfs')
0 files changed, 0 insertions, 0 deletions