Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/hazmat/primitives/asymmetric/cloudhsm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if you only need a subset of functionality.
... def __copy__(self) -> "CloudRSAPrivateKey":
... return self
...
... def __deepcopy__(self, memodict: dict) -> "CloudRSAPrivateKey":
... def __deepcopy__(self, memo: dict) -> "CloudRSAPrivateKey":
... return self
...
>>> cloud_private_key = CloudRSAPrivateKey("creds", "key_id")
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/dh.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __copy__(self) -> DHPublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> DHPublicKey:
def __deepcopy__(self, memo: dict) -> DHPublicKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ def __copy__(self) -> DHPrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> DHPrivateKey:
def __deepcopy__(self, memo: dict) -> DHPrivateKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/dsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __copy__(self) -> DSAPrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> DSAPrivateKey:
def __deepcopy__(self, memo: dict) -> DSAPrivateKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ def __copy__(self) -> DSAPublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> DSAPublicKey:
def __deepcopy__(self, memo: dict) -> DSAPublicKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __copy__(self) -> EllipticCurvePrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> EllipticCurvePrivateKey:
def __deepcopy__(self, memo: dict) -> EllipticCurvePrivateKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -214,7 +214,7 @@ def __copy__(self) -> EllipticCurvePublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> EllipticCurvePublicKey:
def __deepcopy__(self, memo: dict) -> EllipticCurvePublicKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/ed25519.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __copy__(self) -> Ed25519PublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> Ed25519PublicKey:
def __deepcopy__(self, memo: dict) -> Ed25519PublicKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -132,7 +132,7 @@ def __copy__(self) -> Ed25519PrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> Ed25519PrivateKey:
def __deepcopy__(self, memo: dict) -> Ed25519PrivateKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/ed448.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __copy__(self) -> Ed448PublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> Ed448PublicKey:
def __deepcopy__(self, memo: dict) -> Ed448PublicKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -133,7 +133,7 @@ def __copy__(self) -> Ed448PrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> Ed448PrivateKey:
def __deepcopy__(self, memo: dict) -> Ed448PrivateKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __copy__(self) -> RSAPrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> RSAPrivateKey:
def __deepcopy__(self, memo: dict) -> RSAPrivateKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -146,7 +146,7 @@ def __copy__(self) -> RSAPublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> RSAPublicKey:
def __deepcopy__(self, memo: dict) -> RSAPublicKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/x25519.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __copy__(self) -> X25519PublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> X25519PublicKey:
def __deepcopy__(self, memo: dict) -> X25519PublicKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -125,7 +125,7 @@ def __copy__(self) -> X25519PrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> X25519PrivateKey:
def __deepcopy__(self, memo: dict) -> X25519PrivateKey:
"""
Returns a deep copy.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/asymmetric/x448.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __copy__(self) -> X448PublicKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> X448PublicKey:
def __deepcopy__(self, memo: dict) -> X448PublicKey:
"""
Returns a deep copy.
"""
Expand Down Expand Up @@ -127,7 +127,7 @@ def __copy__(self) -> X448PrivateKey:
"""

@abc.abstractmethod
def __deepcopy__(self) -> X448PrivateKey:
def __deepcopy__(self, memo: dict) -> X448PrivateKey:
"""
Returns a deep copy.
"""
Expand Down
Loading