Merge branch 'feature/Encrypt_Module' into feature/Dynamic_Memory_And_Encrypt_Module

This commit is contained in:
J-Jamet
2021-03-23 20:25:49 +01:00
2 changed files with 2 additions and 3 deletions

View File

@@ -44,7 +44,6 @@ enum class EncryptionAlgorithm {
AESRijndael -> AES_UUID
Twofish -> TWOFISH_UUID
ChaCha20 -> CHACHA20_UUID
else -> throw NoSuchAlgorithmException("UUID unrecognized.")
}
}

View File

@@ -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