_asymmetric.py 532 B

12345678910111213141516171819
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import annotations
  5. import abc
  6. # This exists to break an import cycle. It is normally accessible from the
  7. # asymmetric padding module.
  8. class AsymmetricPadding(metaclass=abc.ABCMeta):
  9. @property
  10. @abc.abstractmethod
  11. def name(self) -> str:
  12. """
  13. A string naming this padding (e.g. "PSS", "PKCS1").
  14. """