From d5786dd5c284612280cc8cb8fc029aff724962ce Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 17 Oct 2020 23:48:44 +0200 Subject: [PATCH] Fixed that "PBKDF2" has been used instead of nameStartsWith --- .../dankito/banking/ui/android/security/CryptographyManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }