padding can take an int or an object (PSS.MAX_LENGTH) (#3521)

This commit is contained in:
toppk
2019-12-03 07:26:16 -05:00
committed by Sebastian Rittau
parent 3934da12f6
commit b585c96e5d

View File

@@ -1,5 +1,5 @@
from abc import ABCMeta, abstractmethod
from typing import ClassVar, Optional
from typing import ClassVar, Optional, Union
from cryptography.hazmat.primitives.hashes import HashAlgorithm
@@ -22,6 +22,6 @@ class PKCS1v15(AsymmetricPadding):
class PSS(AsymmetricPadding):
MAX_LENGTH: ClassVar[object]
def __init__(self, mgf: MGF1, salt_length: int) -> None: ...
def __init__(self, mgf: MGF1, salt_length: Union[int, object]) -> None: ...
@property
def name(self) -> str: ...