diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 095a65b..0ebecda 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -4,7 +4,6 @@ import org.cryptomator.integrations.revealpath.RevealPathService; import org.cryptomator.integrations.uiappearance.UiAppearanceProvider; import org.cryptomator.windows.autostart.WindowsAutoStart; -import org.cryptomator.windows.capi.common.Windows_h; import org.cryptomator.windows.keychain.WindowsHelloKeychainAccess; import org.cryptomator.windows.keychain.WindowsProtectedKeychainAccess; import org.cryptomator.windows.quickaccess.ExplorerQuickAccessService; diff --git a/src/main/java/org/cryptomator/windows/keychain/FileKeychain.java b/src/main/java/org/cryptomator/windows/keychain/FileKeychain.java index 64a5f26..b27d7b0 100644 --- a/src/main/java/org/cryptomator/windows/keychain/FileKeychain.java +++ b/src/main/java/org/cryptomator/windows/keychain/FileKeychain.java @@ -26,7 +26,6 @@ import java.util.Objects; import java.util.Optional; import java.util.function.Predicate; -import java.util.stream.Collectors; import static java.nio.charset.StandardCharsets.UTF_8; diff --git a/src/main/java/org/cryptomator/windows/keychain/Util.java b/src/main/java/org/cryptomator/windows/keychain/Util.java index d6c3682..ea7093a 100644 --- a/src/main/java/org/cryptomator/windows/keychain/Util.java +++ b/src/main/java/org/cryptomator/windows/keychain/Util.java @@ -28,7 +28,6 @@ import static java.nio.charset.StandardCharsets.UTF_8; public class Util { - private static final Logger LOG = LoggerFactory.getLogger(Util.class); private static final Path USER_HOME_REL = Path.of("~"); private static final Path USER_HOME = Path.of(System.getProperty("user.home")); diff --git a/src/main/java/org/cryptomator/windows/keychain/WindowsKeychainAccessBase.java b/src/main/java/org/cryptomator/windows/keychain/WindowsKeychainAccessBase.java index 7afea12..093af38 100644 --- a/src/main/java/org/cryptomator/windows/keychain/WindowsKeychainAccessBase.java +++ b/src/main/java/org/cryptomator/windows/keychain/WindowsKeychainAccessBase.java @@ -136,6 +136,7 @@ interface PassphraseCryptor { /** * Encrypts the given cleartext using a key provided by Windows. + * The caller is responsible for zeroing the cleartext array after use. * * @param cleartext The cleartext to encrypt. * @param additionalData Additional data fed into the encryption. Needs to be provided during {@link #decrypt(byte[], byte[])} decryption}