pycryptodome icon indicating copy to clipboard operation
pycryptodome copied to clipboard

nonce not defined in Secret Sharing Schemes example

Open sharuzzaman opened this issue 2 years ago • 0 comments

I tested the example code found at https://pycryptodome.readthedocs.io/en/latest/src/protocol/ss.html

The result is like this:

Traceback (most recent call last):
  File "main.py", line 25, in <module>
    fo.write(nonce + tag + ct)
NameError: name 'nonce' is not defined

The code does not have anything returned as "nonce", so writing it to file failed.

Thank you.

sharuzzaman avatar Jul 23 '22 15:07 sharuzzaman