chore: MD content updates (#7)

* chore: MD content updates

* fix: comparison symbol parsing by groups

* chore: MD content updates
This commit is contained in:
Filip Pajic
2024-05-13 11:59:40 +02:00
committed by GitHub
parent 802fdfe62b
commit 40a3a4604d
55 changed files with 941 additions and 550 deletions

View File

@@ -3,12 +3,12 @@ title: 70/ETH-SECPM
name: Secure channel setup using Ethereum accounts
status: raw
category: Standards Track
editor: Ramses Fernandez \<ramses@status.im\>
editor: Ramses Fernandez &lt;ramses@status.im&gt;
contributors:
---
- Status: raw
- Category: Standards Track
- Editor: Ramses Fernandez \<ramses@status.im\>
- Editor: Ramses Fernandez &lt;ramses@status.im&gt;
## Motivation
The need for secure communications has become paramount.
@@ -100,7 +100,7 @@ XEd448_sign((ik, IK), message):
```
```
XEd448_verify(u, message, (R || s)):
if (R.y \>= 2^448) or (s \>= 2^446): return FALSE
if (R.y >= 2^448) or (s >= 2^446): return FALSE
h = (SHA512(R || 156326 || message)) % q
R_check = s * convert_mont(5) - h * 156326
if R == R_check: return TRUE
@@ -215,10 +215,10 @@ DHRatchet(state, header):
```
```
SkipMessageKeys(state, until):
if state.NR + MAX_SKIP \< until:
if state.NR + MAX_SKIP < until:
raise Error
if state.CKr != none:
while state.Nr \< until:
while state.Nr < until:
state.CKr, mk = HMAC-SHA256(state.CKr)
state.MKSKIPPED[state.DHr, state.Nr] = mk
state.Nr = state.Nr + 1
@@ -362,8 +362,8 @@ DeriveSecret(Secret, Label) = ExpandWithLabel(Secret, Label, "", KDF.Nh)
```
struct {
uint16 length;
opaque label\<V\>;
opaque context\<V\>;
opaque label<V>;
opaque context<V>;
} KDFLabel;
```
The fields of `KDFLabel` MUST be:
@@ -380,11 +380,11 @@ The sturcture of such object MUST be:
struct {
ProtocolVersion version = mls10;
CipherSuite cipher_suite;
opaque group_id\<V\>;
opaque group_id<V>;
uint64 epoch;
opaque tree_hash\<V\>;
opaque confirmed_trasncript_hash\<V\>;
Extension extension\<V\>;
opaque tree_hash<V>;
opaque confirmed_trasncript_hash<V>;
Extension extension<V>;
} GroupContext;
```
@@ -435,9 +435,9 @@ ProtocolVersion version;
CipherSuite cipher_suite;
HPKEPublicKey init_key;
LeafNode leaf_node;
Extension extensions\<V\>;
Extension extensions<V>;
/* SignWithLabel(., "KeyPackageTBS", KeyPackageTBS) */
opaque signature\<V\>;
opaque signature<V>;
}
```
```
@@ -446,7 +446,7 @@ ProtocolVersion version;
CipheSuite cipher_suite;
HPKEPublicKey init_key;
LeafNode leaf_node;
Extension extensions\<V\>;
Extension extensions<V>;
}
```
`KeyPackage` object MUST be verified when:
@@ -495,9 +495,9 @@ All members of a group MUST support the cipher suite and protocol version in use
```
struct {
ExtensionType extension_types\<V\>;
ProposalType proposal_types\<V\>;
CredentialType credential_types\<V\>;
ExtensionType extension_types<V>;
ProposalType proposal_types<V>;
CredentialType credential_types<V>;
}
```