mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 08:12:28 -08:00
fix: PRF settings #2673
This commit is contained in:
5 files changed
+11
-14
No files matched your search
@@ -1,3 +1,6 @@
|
||||
KeePassDX(4.5.2)
|
||||
* Fix PRF settings #2673
|
||||
|
||||
KeePassDX(4.5.1)
|
||||
* Fix Memory optimization #2666
|
||||
* Fix OTP token not hidden by default #2665
|
||||
|
||||
@@ -19,8 +19,8 @@ android {
|
||||
applicationId = "com.kunzisoft.keepass"
|
||||
minSdk = 19
|
||||
targetSdk = 36
|
||||
versionCode = 45100
|
||||
versionName = "4.5.1"
|
||||
versionCode = 45200
|
||||
versionName = "4.5.2"
|
||||
multiDexEnabled = true
|
||||
|
||||
testApplicationId = "com.kunzisoft.keepass.tests"
|
||||
|
||||
+4
-12
@@ -266,18 +266,10 @@ data class AuthenticationExtensionsPRFValues(
|
||||
private const val SECOND = "second"
|
||||
|
||||
fun JSONObject.getAuthenticationExtensionsPRFValues(): AuthenticationExtensionsPRFValues {
|
||||
val first = Base64Helper.b64Decode(getString(FIRST))
|
||||
if (first.size != 32) {
|
||||
throw IllegalArgumentException("PRF salt 'first' must be 32 bytes, but was ${first.size}")
|
||||
}
|
||||
val second = if (has(SECOND)) {
|
||||
val secondDecoded = Base64Helper.b64Decode(getString(SECOND))
|
||||
if (secondDecoded.size != 32) {
|
||||
throw IllegalArgumentException("PRF salt 'second' must be 32 bytes, but was ${secondDecoded.size}")
|
||||
}
|
||||
secondDecoded
|
||||
} else null
|
||||
return AuthenticationExtensionsPRFValues(first, second)
|
||||
return AuthenticationExtensionsPRFValues(
|
||||
Base64Helper.b64Decode(getString(FIRST)),
|
||||
if (has(SECOND)) Base64Helper.b64Decode(getString(SECOND)) else null
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
* Fix PRF settings #2673
|
||||
@@ -0,0 +1 @@
|
||||
* Correction des paramètres PRF #2673
|
||||
Reference in new issue
Block a user