Skip to content

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

@chengjackjelly

Description

@chengjackjelly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions