예제 #1
0
 def Hint_hash(self, m):
     h = sha3_512(m).digest()
     return sum(2**i * self.bit(h, i) for i in range(2 * self.b))
예제 #2
0
 def to_hash(m):
     return sha3_512(m).digest()