mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Merge branch 'feature/Encrypt_Module' into feature/Dynamic_Memory_And_Encrypt_Module
This commit is contained in:
@@ -44,7 +44,6 @@ enum class EncryptionAlgorithm {
|
||||
AESRijndael -> AES_UUID
|
||||
Twofish -> TWOFISH_UUID
|
||||
ChaCha20 -> CHACHA20_UUID
|
||||
else -> throw NoSuchAlgorithmException("UUID unrecognized.")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,8 +59,8 @@ class Argon2Kdf(private val type: Type) : KdfEngine() {
|
||||
val version = kdfParameters.getUInt32(PARAM_VERSION)?.toKotlinInt() ?: MAX_VERSION
|
||||
|
||||
// Not used
|
||||
val secretKey = kdfParameters.getByteArray(PARAM_SECRET_KEY)
|
||||
val assocData = kdfParameters.getByteArray(PARAM_ASSOC_DATA)
|
||||
// val secretKey = kdfParameters.getByteArray(PARAM_SECRET_KEY)
|
||||
// val assocData = kdfParameters.getByteArray(PARAM_ASSOC_DATA)
|
||||
|
||||
val argonType = if (type == Type.ARGON2_ID) Argon2Type.ARGON2_ID else Argon2Type.ARGON2_D
|
||||
|
||||
|
||||
Reference in New Issue
Block a user