summaryrefslogtreecommitdiff
path: root/crypto-common/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'crypto-common/src/main')
-rw-r--r--crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt
index 31e1710d..cb3df75e 100644
--- a/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt
+++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/KeyManager.kt
@@ -20,8 +20,8 @@ public interface KeyManager<Key, KeyIdentifier> {
*/
public suspend fun addKey(key: Key, replace: Boolean = false): Result<Key, Throwable>
- /** Removes [key] from the store. */
- public suspend fun removeKey(key: Key): Result<Key, Throwable>
+ /** Finds a key for [identifier] in the store and deletes it. */
+ public suspend fun removeKey(identifier: KeyIdentifier): Result<Unit, Throwable>
/**
* Get a [Key] for the given [id]. The actual semantics of what [id] is are left to individual