Skip to content

Commit

Permalink
Further rephrasing for Thomas Pornin's recommendations.
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernMHaase committed Jan 19, 2024
1 parent 1a87c35 commit 4c9857c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions draft-irtf-cfrg-cpace.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,13 @@ representation of the group element g^y. Additionally, scalar\_pow\_vfy specifie

- nil denotes an empty octet string, i.e., len(nil) = 0.

- In this specification use a quotation marks both for general language use and as syntax for octet strings.

If a character sequence in between quotation marks is considered to be a defined octet string sequence,
we use a preceeding lower-case letter b in front of the quotation marks as, e.g., for the domain separation octet string b"CPace25519".
- In this specification use a quotation marks "" both for general language use (e.g. citations of definitions from other documents) and
as syntax for specifying octet strings as in b"CPace25519".

We use a preceeding lower-case letter b"" in front of the quotation marks if a character sequence is representing an octet string sequence.
I.e. we use the notation for byte string representations as specified by the python programming language.
We do so for clearly
distinguishing octet string representations from places where quotation marks correspond to normal language use (e.g. for citations of definitions from other standard documents).
We use this convention also
for making clear that a single-byte ASCII encoding of the characters is to be used if a leading b"" is prepended to the quotation marks.
This convention also makes it explicit that a single-byte ASCII encoding of the characters is to be used if a leading b"" is prepended to the quotation marks (just as in
python code).

- prepend\_len(octet\_string) denotes the octet sequence that is obtained from prepending
the length of the octet string to the string itself. The length shall be prepended by using an LEB128 encoding of the length.
Expand Down

0 comments on commit 4c9857c

Please sign in to comment.