This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git


The following commit(s) were added to refs/heads/trunk by this push:
     new deb26e8  Hash() takes a Salt. adjust pseudo-code. add Salt for 
OpenedKey
deb26e8 is described below

commit deb26e872d357ce4bff7e0ee3903f32f4ac78504
Author: Greg Stein <[email protected]>
AuthorDate: Fri May 27 04:50:18 2022 -0400

    Hash() takes a Salt. adjust pseudo-code. add Salt for OpenedKey
---
 v3/README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/v3/README.md b/v3/README.md
index ac736e6..8629da2 100644
--- a/v3/README.md
+++ b/v3/README.md
@@ -86,16 +86,16 @@ IssueID := [-a-zA-Z0-9]+
 Election-data := TBD
 Issue-data := TBD
 BLOCK := Election-data + sorted(Issue-Data)
-OpenedKey := Hash(BLOCK)
+OpenedKey := Hash(BLOCK, Salt(each-election))
 
 Voters := Map<VoterID, Salt(each-voter)>
-VoterToken := Hash(OpenedKey + VoterID + Salt(each-voter))
+VoterToken := Hash(OpenedKey + VoterID, Salt(each-voter))
 
 Issues := Map<IssueID, Salt(each-issue)>
-IssueToken := Hash(OpenedKey + IssueID + Salt(each-issue))
+IssueToken := Hash(OpenedKey + IssueID, Salt(each-issue))
 
 votestring = TBD; padding TBD
-VoteKey := Hash(VoterToken + IssueToken + Salt(each-vote))
+VoteKey := Hash(VoterToken + IssueToken, Salt(each-vote))
 Vote := Tuple[ VoterToken, IssueToken, Salt(each-vote), Encrypt(VoteKey, 
votestring) ]
 ```
 

Reply via email to