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

Nothing works (Windows10-64, Python 2.7.16) #3

Open
LaszloHars opened this issue Apr 20, 2019 · 0 comments
Open

Nothing works (Windows10-64, Python 2.7.16) #3

LaszloHars opened this issue Apr 20, 2019 · 0 comments

Comments

@LaszloHars
Copy link

python hss.py genkey hss2-5-8
python hss.py read hss2-5-8.prv

HSS private key
levels 00000002
prv[0]:

LMS private key
lms_type 00000005
lmots_type 00000004
SEED d107250f79aae039733e5a364272cf5e
26265d7b7ba689e1c7f861c423736578
I 444951aacaae7b5beeefce552732cce1
25d0b42633e3eeb7ad0773334cd74216
b0ea691c8f8cbb8a0920b89a4b02c095
e30b4abd2c31a7ac7282c093c2fcb6b8
leaf_num 00000001


python hss.py read hss2-5-8.pub

HSS public key
levels 00000002

LMS public key
LMS type 00000005 # LMS_SHA256_M32_H5
LMOTS_type 00000004 # LMOTS_SHA256_N32_W8
I 444951aacaae7b5beeefce552732cce1
25d0b42633e3eeb7ad0773334cd74216
b0ea691c8f8cbb8a0920b89a4b02c095
e30b4abd2c31a7ac7282c093c2fcb6b8
K 3b690e170c095985b2a3f0809aa0a3d5
a1e831228a63257e8aa7acf71b72ef82


Attempt to sign the file "hello.txt" containing the text: Hello World!
python hss.py sign hello.txt hss2-5-8.prv

The signature is stored in the file of size 2,697 bytes
hello.txt.sig
Something is wrong. We cannot pretty print the signature with
python hss.py read hello.txt.sig
hss.py crashes at line 1282..., with message:
ValueError: ('error: parameter has wrong length', '0')

Signature verification fails:
python hss.py verify hss2-5-8.pub hello.txt
-> INVALID (error: exception)

Signing the second time gives different signature size: 2,707 bytes, but still fails verification
Signing the third time gives different signature size: 2,701 bytes, but still fails verification
Signing the fourth time gives different signature size: 2,700 bytes, but still fails verification

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