Skip to content

Commit

Permalink
Documentation, filename max length
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben RUBSON committed Apr 7, 2018
1 parent 9ad4a7b commit 0fb264d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions encfs/encfs.pod
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ inherited by B<EncFS> (or possibly be further limited).

One such limitation is filename length. If your underlying filesystem limits
you to N characters in a filename, then B<EncFS> will limit you to approximately
3*(N-2)/4. For example if the host filesystem limits to 256 characters, then
B<EncFS> will be limited to 190 character filenames. This is because encrypted
3*(N-2)/4. For example if the host filesystem limits to 255 characters, then
B<EncFS> will be limited to 189 character filenames. This is because encrypted
filenames are always longer than plaintext filenames.

=head1 FILESYSTEM OPTIONS
Expand Down Expand Up @@ -488,6 +488,11 @@ on by default, as it takes a similar amount of time to using the stream cipher.
However stream cipher mode may be useful if you want shorter encrypted
filenames for some reason.

Based on an underlying filesystem supporting a maximum of 255 characters in
filenames, here is the maximum possible filename length depending on the choosen
encoding scheme : stream (189), block (176), block32 (143). Note that we should
rather talk about bytes, when filenames contain special (multi-bytes) characters.

Prior to version 1.1, only stream encoding was supported.

=item I<Filename Initialization Vector Chaining>
Expand Down

0 comments on commit 0fb264d

Please sign in to comment.