_asymmetric.py 485 B

1234567891011121314151617
  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. import abc
  5. # This exists to break an import cycle. It is normally accessible from the
  6. # asymmetric padding module.
  7. class AsymmetricPadding(metaclass=abc.ABCMeta):
  8. @abc.abstractproperty
  9. def name(self) -> str:
  10. """
  11. A string naming this padding (e.g. "PSS", "PKCS1").
  12. """