-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes
38 lines (25 loc) · 842 Bytes
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Marci design:
Client:
- init: initialize pre-key bundle
[Bundle]
> IK
> SPK
> OPK - single OPK: recreate after usage?
+ bool: init
- init_connect: initiate a connection with another Client
[Alice]
dh1 (IKa, SPKb)
dh2 (EKa, IKb)
dh3 (EKa, SPKb)
dh4 (EKa, OPKb)
- connect: accept a connection with another Client
[Bob]
dh1 (SPKb, IKa)
dh2 (IKb, EKa)
dh3 (SPKb, EKa)
dh4 (OPKb, EKa)
- init_ratchets: initalize Symmetric and DH init_ratchets
- dh_next: Turn the DH Ratchet
- send: send a message to another Client
- recv: receive a message from another client
========================================================================