cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
94 stars 35 forks source link

Make Shortening Threshold depend on VaultConfig #101

Closed overheadhunter closed 3 years ago

overheadhunter commented 3 years ago

As reported in cryptomator/cryptomator#1617, a crypto file system with a configured maximum file name length that is not equal to 220 leads to a gap where:

Shortening must therefore be applied as soon as a c9r file name hits the configured threshold.

To ensure deterministic file name encryption, we must make sure to use the file name limit from the shared vault.cryptomator file (see #95) instead of application-specific settings.