Skip to content

Commit 1728153

Browse files
ylangiscdkocher
authored andcommitted
Review.
1 parent 27c3b05 commit 1728153

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/UVFVault.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public Path decrypt(final Session<?> session, final Path file) throws Background
129129
try {
130130
final CryptorCache effectivefileNameCryptor;
131131
// / diff to AbstractVault.decrypt
132+
//TODO lädt das recovery metadaten file anstatt normales
132133
final int revision = loadRevision(session, file);
133134
effectivefileNameCryptor = new CryptorCache(this.getCryptor().fileNameCryptor(revision));
134135
// \
@@ -243,7 +244,7 @@ public Path encrypt(Session<?> session, Path file, boolean metadata) throws Back
243244

244245
private int loadRevision(final Session<?> session, final Path directory) throws BackgroundException {
245246
// Read directory id from file
246-
log.debug("Read directory ID from {}", directory);
247+
log.debug("Read directory ID from {}", directory);
247248
final Path metadataFile = new Path(directory.getParent(), this.getDirectoryMetadataFilename(), EnumSet.of(Path.Type.file, Path.Type.encrypted));
248249
final byte[] ciphertext = new ContentReader(session).readBytes(metadataFile);
249250
// https://github.com/encryption-alliance/unified-vault-format/blob/develop/file%20name%20encryption/AES-SIV-512-B64URL.md#format-of-diruvf-and-symlinkuvf

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/features/CryptoDirectoryUVFFeature.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public Path mkdir(final Path folder, final TransferStatus status) throws Backgro
7171
status.setHeader(vault.getFileHeaderCryptor().encryptHeader(header));
7272
status.setNonces(new RandomNonceGenerator(vault.getNonceSize()));
7373
final Path target = delegate.withWriter(new CryptoWriteFeature<>(session, writer, vault)).mkdir(encrypt, status);
74-
//TODO kopie von dir.uvf auch hier noch anlegen
7574
final Path recoveryDirectoryMetadataFile = new Path(target,
7675
vault.getDirectoryMetadataFilename(),
7776
EnumSet.of(Path.Type.file));

0 commit comments

Comments
 (0)