Issue 32 in salmon-protocol: public key modulus bytes count

12 views
Skip to first unread message

salmon-...@googlecode.com

unread,
Jun 8, 2011, 4:41:51 PM6/8/11
to salmon-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 32 by m...@rkusa.st: public key modulus bytes count
http://code.google.com/p/salmon-protocol/issues/detail?id=32

shouldn't
http://code.google.com/p/salmon-protocol/source/browse/trunk/lib/python/magicsig_hjfreyer/magicsigalg.py#225
be
pad_string = chr(0xFF) * (msg_size_bits - len(encoded) - 3)
instead of
pad_string = chr(0xFF) * (msg_size_bits / 8 - len(encoded) - 3)
?

You did the /8 one line above:
msg_size_bits = modulus_size + 8-(modulus_size % 8) # Round up to next byte

I had problems running this reference implementation agains Status.Net and
this one fixed this issue.

Reply all
Reply to author
Forward
0 new messages