- pad file contents to reach a multiple of 16 bytes (so AES/CTR always works on complete blocks) - references #24

- calculate MAC over complete ciphertext (including file length obfuscation trash data)
This commit is contained in:
Sebastian Stenzel
2015-01-16 19:50:57 +01:00
parent 0b64c7ce25
commit d774546bf8
6 changed files with 78 additions and 38 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
<version>0.5.0-SNAPSHOT</version>
</parent>
<artifactId>core</artifactId>
<name>Cryptomator core I/O module</name>
<name>Cryptomator WebDAV and I/O module</name>
<properties>
<jetty.version>9.2.5.v20141112</jetty.version>
@@ -92,7 +92,7 @@ public final class WebDavServer {
final ServletHolder servlet = getWebDavServletHolder(workDir.toString(), pathPrefix, checkFileIntegrity, cryptor);
servletContext.addServlet(servlet, pathSpec);
LOG.info("{} available on http://{}", workDir, uri.getRawSchemeSpecificPart());
LOG.info("{} available on http:{}", workDir, uri.getRawSchemeSpecificPart());
return new ServletLifeCycleAdapter(servlet, uri);
} catch (URISyntaxException e) {
throw new IllegalStateException("Invalid hard-coded URI components.", e);