Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore non-ciphertext files #321

Closed
overheadhunter opened this issue Aug 16, 2016 · 0 comments
Closed

Ignore non-ciphertext files #321

overheadhunter opened this issue Aug 16, 2016 · 0 comments
Assignees
Labels
type:bug Something isn't working
Milestone

Comments

@overheadhunter
Copy link
Member

Basic Info

Affects all versions.

Description

When a file with a valid base32 name exists inside the d directory, Cryptomator tries to decrypt it. For decoded strings > 16 bytes that is not a problem, but if the name is too short to contain the 16-byte IV, Cryptomator throws an exception and doesn't show any directory contents.

Log File

java.lang.IllegalArgumentException: 16 > 5
    at java.util.Arrays.copyOfRange(Arrays.java:3519) ~[?:1.8.0_92]
    at org.cryptomator.siv.SivMode.decrypt(SivMode.java:178) ~[siv-mode-1.0.7.jar:?]
    at org.cryptomator.siv.SivMode.decrypt(SivMode.java:156) ~[siv-mode-1.0.7.jar:?]
    at org.cryptomator.crypto.engine.impl.FilenameCryptorImpl.decryptFilename(FilenameCryptorImpl.java:71) ~[classes/:?]
@overheadhunter overheadhunter added the type:bug Something isn't working label Aug 16, 2016
@overheadhunter overheadhunter added this to the 1.1.5 milestone Aug 16, 2016
@overheadhunter overheadhunter self-assigned this Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant