Browse Source

make sure GF2p8 is hashable..

main
John-Mark Gurney 1 year ago
parent
commit
f1738f3e44
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      shamirss.py

+ 3
- 0
shamirss.py View File

@@ -370,6 +370,9 @@ class TestShamirSS(unittest.TestCase):
b = GF2p8(random.randint(0, 255)) b = GF2p8(random.randint(0, 255))
c = GF2p8(random.randint(0, 255)) c = GF2p8(random.randint(0, 255))


# Hashable
{ a, b, c }

self.assertEqual(a * 0, 0) self.assertEqual(a * 0, 0)


# Identity # Identity


Loading…
Cancel
Save