diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SsssKeySpec.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SsssKeySpec.kt index a9248c5762d08c3185fb7986cce8bc796b0081e7..b4234411f34947e9439fda800232b028035cfbf0 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SsssKeySpec.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SsssKeySpec.kt @@ -49,17 +49,8 @@ data class RawBytesKeySpec( } } - fun fromPassphrase(passphrase: String, salt: String, iterations: Int, - progressListener: ProgressListener?, isBsSpeke: Boolean = false): RawBytesKeySpec { - return RawBytesKeySpec( - privateKey = if (isBsSpeke) BCryptManager.retrievePrivateKeyWithPassword(passphrase, salt, iterations) - else deriveKey( - passphrase, - salt, - iterations, - progressListener - ) - ) + fun fromBCryptPassphrase(passphrase: String, salt: String, iterations: Int): RawBytesKeySpec { + return RawBytesKeySpec(BCryptManager.retrievePrivateKeyWithPassword(passphrase, salt, iterations)) } }