12345678 |
- def set_convergence_secret(self, secret):
- """ sets the secret used to defeat confirmation-of-a-file attack
- """
- secret = clean_string(secret)
- if self.__convergence_secret and self.__convergence_secret != secret:
- msg = "Do not change the convergence secret during encryption!"
- raise CryptError(msg)
- self.__convergence_secret = secret
|