Skip to content

Commit

Permalink
Update poc/prg.py
Browse files Browse the repository at this point in the history
Co-authored-by: David Cook <[email protected]>
  • Loading branch information
hannahdaviscrypto and divergentdave authored Aug 24, 2023
1 parent a4c5c31 commit eb09c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poc/prg.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ class PrgSha3(Prg):
test_vec_name = 'PrgSha3'

def __init__(self, seed, dst, binder):
# `dst` is used for domain separation; `seed || binder` is
# used as the main input string.
# The input is composed of `dst`, the domain separation tag, the
# `seed`, and the `binder` string.
self.shake = SHAKE128.new()
dst_length = to_le_bytes(len(dst), 1) # one byte value
self.shake.update(dst_length)
Expand Down

0 comments on commit eb09c46

Please sign in to comment.