diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/security/CryptographyManager.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/security/CryptographyManager.kt index 90939747..09426ae0 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/security/CryptographyManager.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/security/CryptographyManager.kt @@ -150,7 +150,7 @@ open class CryptographyManager { } open fun findBestMatchingAlgorithm(type: SecurityProviderServiceType, nameStartsWith: String, vararg preferredAlgorithms: String): String? { - val supportedAlgorithms = listServiceTypeAlgorithmsWithName(type, "PBKDF2") + val supportedAlgorithms = listServiceTypeAlgorithmsWithName(type, nameStartsWith) val bestMatchingAlgorithm = preferredAlgorithms.firstOrNull { supportedAlgorithms.contains(it) } ?: supportedAlgorithms.maxBy { it.length }