Skip to content

Commit 86f43b7

Browse files
committed
fixup! Expose the ECIES support from vodozemac
1 parent 7e58cee commit 86f43b7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/vodozemac/ecies.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ pub struct Ecies {
4141
impl Ecies {
4242
/// Create a new, random, unestablished ECIES session.
4343
///
44-
/// This method will use the `MATRIX_QR_CODE_LOGIN` info.
44+
/// This method will use the
45+
/// [`MATRIX_QR_CODE_LOGIN`](https://github.com/matrix-org/matrix-spec-proposals/pull/4108)
46+
/// info for domain separation when creating the session.
4547
#[wasm_bindgen(constructor)]
4648
pub fn new() -> Self {
4749
let inner = ecies::Ecies::new();
@@ -140,16 +142,16 @@ impl EstablishedEcies {
140142
/// Get the [`CheckCode`] which uniquely identifies this
141143
/// [`EstablishedEcies`] session.
142144
///
143-
/// This check code can be used to check that both sides of the session are
144-
/// indeed using the same shared secret.
145+
/// This check code can be used to verify and confirm that both sides of the
146+
/// session are indeed using the same shared secret.
145147
pub fn check_code(&self) -> CheckCode {
146148
self.inner.lock().unwrap().check_code().into()
147149
}
148150
}
149151

150152
/// A check code that can be used to confirm that two [`EstablishedEcies`]
151153
/// objects share the same secret. This is supposed to be shared out-of-band to
152-
/// protect against active MITM attacks.
154+
/// protect against active Man-in-the-middle (MITM) attacks.
153155
///
154156
/// Since the initiator device can always tell whether a MITM attack is in
155157
/// progress after channel establishment, this code technically carries only a

0 commit comments

Comments
 (0)