示例#1
0
 def __init__(self, s=None):
     self._s = _sha3.sha3()
     self._s.init(self.digest_size * 8)
     if s is not None:
         self._s.update(s)
示例#2
0
 def __init__(self, s=None):
     self._s = _sha3.sha3()
     self._s.init(self.digest_size * 8)
     if s is not None:
         self._s.update(s)
示例#3
0
 def __init__(self, output_length=0):
     if output_length % 8:
         raise NotImplementedError('output bit lengths that are not a multiple of 8 bits: not tested yet')
     self._s = _sha3.sha3()
     self._s.init(self._internal_id, output_length)