From 53211c908cb513738df38a4b63fb878ab99e67ee Mon Sep 17 00:00:00 2001 From: Jacob Persson <7156+typfel@users.noreply.github.com> Date: Tue, 12 Sep 2023 13:50:55 +0200 Subject: [PATCH] feat: support parsing quantum safe ciphersuite (#2049) --- .../com/wire/kalium/logic/data/conversation/Conversation.kt | 3 ++- .../kalium/persistence/dao/conversation/ConversationEntity.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/conversation/Conversation.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/conversation/Conversation.kt index cc447e3f2de..a3160d3b713 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/conversation/Conversation.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/data/conversation/Conversation.kt @@ -196,7 +196,8 @@ data class Conversation( MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448(4), MLS_256_DHKEMP521_AES256GCM_SHA512_P521(5), MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448(6), - MLS_256_DHKEMP384_AES256GCM_SHA384_P384(7); + MLS_256_DHKEMP384_AES256GCM_SHA384_P384(7), + MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_ED25519(61489); companion object { fun fromTag(tag: Int): CipherSuite = values().first { type -> type.tag == tag } diff --git a/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationEntity.kt b/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationEntity.kt index 2c69ea8ee0b..cf445bc12ea 100644 --- a/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationEntity.kt +++ b/persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationEntity.kt @@ -67,7 +67,8 @@ data class ConversationEntity( MLS_256_DHKEMX448_AES256GCM_SHA512_Ed448(4), MLS_256_DHKEMP521_AES256GCM_SHA512_P521(5), MLS_256_DHKEMX448_CHACHA20POLY1305_SHA512_Ed448(6), - MLS_256_DHKEMP384_AES256GCM_SHA384_P384(7); + MLS_256_DHKEMP384_AES256GCM_SHA384_P384(7), + MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_ED25519(61489); companion object { fun fromTag(tag: Int?): CipherSuite =