fixup! events: Deprecate MessageAuthenticationCode::HkdfHmacSha256
This commit is contained in:
parent
4323fe8b3f
commit
4718a88bfe
@ -287,7 +287,7 @@ mod tests {
|
||||
"method": "m.sas.v1",
|
||||
"key_agreement_protocol": "curve25519",
|
||||
"hash": "sha256",
|
||||
"message_authentication_code": "hkdf-hmac-sha256",
|
||||
"message_authentication_code": "hkdf-hmac-sha256.v2",
|
||||
"short_authentication_string": ["decimal"]
|
||||
},
|
||||
"type": "m.key.verification.accept",
|
||||
|
@ -152,8 +152,8 @@ pub struct SasV1Content {
|
||||
/// The message authentication codes that the sending device understands.
|
||||
///
|
||||
/// Must include at least `hkdf-hmac-sha256.v2`. Should also include `hkdf-hmac-sha256` for
|
||||
/// compatibility with older clients, though this identifier is deprecated and will be
|
||||
/// removed in a future version of the spec.
|
||||
/// compatibility with older clients, though this MAC is deprecated and will be removed in a
|
||||
/// future version of the spec.
|
||||
pub message_authentication_codes: Vec<MessageAuthenticationCode>,
|
||||
|
||||
/// The SAS methods the sending device (and the sending device's user) understands.
|
||||
@ -355,7 +355,7 @@ mod tests {
|
||||
"method": "m.sas.v1",
|
||||
"hashes": ["sha256"],
|
||||
"key_agreement_protocols": ["curve25519"],
|
||||
"message_authentication_codes": ["hkdf-hmac-sha256"],
|
||||
"message_authentication_codes": ["hkdf-hmac-sha256.v2"],
|
||||
"short_authentication_string": ["decimal"]
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user