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 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
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