提交 6aba2a41 authored 作者: Thomas Mueller's avatar Thomas Mueller

Rename parameters

上级 1a03eb16
......@@ -171,7 +171,7 @@ public class FilePathCrypt extends FilePathWrapper {
private final String name;
public FileCrypt(String name, byte[] passwordBytes, FileChannel base) throws IOException {
public FileCrypt(String name, byte[] encryptionKey, FileChannel base) throws IOException {
this.name = name;
this.base = base;
this.size = base.size() - HEADER_LENGTH;
......@@ -191,7 +191,7 @@ public class FilePathCrypt extends FilePathWrapper {
}
}
AES cipher = new AES();
cipher.setKey(SHA256.getPBKDF2(passwordBytes, salt, HASH_ITERATIONS, 16));
cipher.setKey(SHA256.getPBKDF2(encryptionKey, salt, HASH_ITERATIONS, 16));
xts = new XTS(cipher);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论