ruma-events: Add the new key agreement method.
This commit is contained in:
parent
ded60cc935
commit
c93cfb986b
@ -25,11 +25,13 @@ pub enum HashAlgorithm {
|
|||||||
/// A key agreement protocol.
|
/// A key agreement protocol.
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Display, EnumString, Serialize, Deserialize)]
|
#[derive(Clone, Copy, Debug, PartialEq, Display, EnumString, Serialize, Deserialize)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
#[strum(serialize_all = "snake_case")]
|
#[strum(serialize_all = "kebab-case")]
|
||||||
pub enum KeyAgreementProtocol {
|
pub enum KeyAgreementProtocol {
|
||||||
/// The [Curve25519](https://cr.yp.to/ecdh.html) key agreement protocol.
|
/// The [Curve25519](https://cr.yp.to/ecdh.html) key agreement protocol.
|
||||||
Curve25519,
|
Curve25519,
|
||||||
|
/// The Curve25519 key agreement protocol with check for public keys.
|
||||||
|
Curve25519HkdfSha256,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A message authentication code algorithm.
|
/// A message authentication code algorithm.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user