From c93cfb986b35e86c373d638e2c89d2b614469f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 14 Jul 2020 16:35:09 +0200 Subject: [PATCH] ruma-events: Add the new key agreement method. --- ruma-events/src/key/verification.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ruma-events/src/key/verification.rs b/ruma-events/src/key/verification.rs index 0da72f61..6d9e6019 100644 --- a/ruma-events/src/key/verification.rs +++ b/ruma-events/src/key/verification.rs @@ -25,11 +25,13 @@ pub enum HashAlgorithm { /// A key agreement protocol. #[derive(Clone, Copy, Debug, PartialEq, Display, EnumString, Serialize, Deserialize)] #[non_exhaustive] -#[serde(rename_all = "snake_case")] -#[strum(serialize_all = "snake_case")] +#[serde(rename_all = "kebab-case")] +#[strum(serialize_all = "kebab-case")] pub enum KeyAgreementProtocol { /// The [Curve25519](https://cr.yp.to/ecdh.html) key agreement protocol. Curve25519, + /// The Curve25519 key agreement protocol with check for public keys. + Curve25519HkdfSha256, } /// A message authentication code algorithm.