-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix import cycle with asymmetricpadding (#5758)
* fix import cycle with asymmetricpadding * Update src/cryptography/hazmat/primitives/_asymmetric.py
- Loading branch information
1 parent
a3e435f
commit 4f03b8e
Showing
3 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file is dual licensed under the terms of the Apache License, Version | ||
# 2.0, and the BSD License. See the LICENSE file in the root of this repository | ||
# for complete details. | ||
|
||
import abc | ||
|
||
|
||
# This exists to break an import cycle. It is normally accessible from the | ||
# asymmetric padding module. | ||
|
||
|
||
class AsymmetricPadding(metaclass=abc.ABCMeta): | ||
@abc.abstractproperty | ||
def name(self) -> str: | ||
""" | ||
A string naming this padding (e.g. "PSS", "PKCS1"). | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters