Esempio n. 1
0
    def reseed(self, seed):
        if self.key is None:
            self.key = b("\0") * self.key_size

        self._set_key(SHAd256.new(self.key + seed).digest())
        self.counter()  # increment counter
        assert len(self.key) == self.key_size
    def reseed(self, seed):
        if self.key is None:
            self.key = b("\0") * self.key_size

        self._set_key(SHAd256.new(self.key + seed).digest())
        self.counter()  # increment counter
        assert len(self.key) == self.key_size
Esempio n. 3
0
 def reset(self):
     self._h = SHAd256.new()
     self.length = 0
Esempio n. 4
0
 def reset(self):
     self._h = SHAd256.new()
     self.length = 0
 def reseed(self, seed):
     if self.key is None:
         self.key = b('\x00') * self.key_size
     self._set_key(SHAd256.new(self.key + seed).digest())
     self.counter()
     assert len(self.key) == self.key_size
Esempio n. 6
0
 def reseed(self, seed):
     if self.key is None:
         self.key = b('\x00') * self.key_size
     self._set_key(SHAd256.new(self.key + seed).digest())
     self.counter()
     return