Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear variable name and incompatible type when construct hash. #3

Open
chengjackjelly opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@chengjackjelly
Copy link

chengjackjelly commented Nov 21, 2024

Hi, we are student from Linköping university. We are using the script you provide to generate DETs and use it in our transmitter as part of prototype implementation to DRIP. The DET generated so far has some problem when we try to verify the ORCHID hash it constructed. We look into the script and identify some issues.

For code below:

h_orchid_left = unhexlify(b_prefix + b_hid + b_ogaid)

  • It's unclear to use h_orchid_left to refer to a binary data.
  • The unhexlify function is taking binary data as input here.

For code below:

shake.update((h_orchid_left + hi))

  • The hash should be constructed by binary data. Here is a mix of binary data(h_orchid_left) and a bytes object in hexadecimal representation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant