Skip to content

Commit b585c96

Browse files
toppksrittau
authored andcommitted
padding can take an int or an object (PSS.MAX_LENGTH) (#3521)
1 parent 3934da1 commit b585c96

File tree

1 file changed

+2
-2
lines changed
  • third_party/2and3/cryptography/hazmat/primitives/asymmetric

1 file changed

+2
-2
lines changed

third_party/2and3/cryptography/hazmat/primitives/asymmetric/padding.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABCMeta, abstractmethod
2-
from typing import ClassVar, Optional
2+
from typing import ClassVar, Optional, Union
33

44
from cryptography.hazmat.primitives.hashes import HashAlgorithm
55

@@ -22,6 +22,6 @@ class PKCS1v15(AsymmetricPadding):
2222

2323
class PSS(AsymmetricPadding):
2424
MAX_LENGTH: ClassVar[object]
25-
def __init__(self, mgf: MGF1, salt_length: int) -> None: ...
25+
def __init__(self, mgf: MGF1, salt_length: Union[int, object]) -> None: ...
2626
@property
2727
def name(self) -> str: ...

0 commit comments

Comments
 (0)