Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
aiohttp>=3.0
parameterized>=0.7.3
python-dateutil>=2.8.0
pyopenssl
pyopenssl
cryptography>=44.0.2,<47.0.0
1 change: 1 addition & 0 deletions sdk/keyvault/azure-keyvault-certificates/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ dev = [
"azure-identity",
"azure-keyvault-nspkg",
"azure-sdk-tools",
"cryptography>=44.0.2,<47.0.0",
"parameterized>=0.7.3",
"pyopenssl",
"python-dateutil>=2.8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ def recovery_level(self) -> Optional[str]:
return self._attributes.recovery_level if self._attributes else None

@property
def tags(self) -> Dict[str, str]:
def tags(self) -> Optional[Dict[str, str]]:
"""Application specific metadata in the form of key-value pairs.

:returns: A dictionary of tags attached to the key.
:rtype: dict[str, str]
:rtype: dict[str, str] or None
"""
return self._tags

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,16 @@ def __copy__(self) -> KeyVaultRSAPublicKey:
"""
return self

def verifier( # pylint:disable=docstring-missing-param,docstring-missing-return,docstring-missing-rtype
def __deepcopy__(self, memo: dict) -> KeyVaultRSAPublicKey:
"""Returns this instance since it is treated as immutable.

:param dict memo: The memo dictionary used by deepcopy.
:returns: This instance.
:rtype: ~azure.keyvault.keys.crypto.KeyVaultRSAPublicKey
"""
return self

def verifier(# pylint:disable=docstring-missing-param,docstring-missing-return,docstring-missing-rtype
self, signature: bytes, padding: AsymmetricPadding, algorithm: HashAlgorithm
) -> NoReturn:
"""Not implemented. This method was deprecated in `cryptography` 2.0 and removed in 37.0.0."""
Expand Down Expand Up @@ -499,6 +508,15 @@ def __copy__(self) -> KeyVaultRSAPrivateKey:
"""
return self

def __deepcopy__(self, memo: dict) -> KeyVaultRSAPrivateKey:
"""Returns this instance since it is treated as immutable.

:param dict memo: The memo dictionary used by deepcopy.
:returns: This instance.
:rtype: ~azure.keyvault.keys.crypto.KeyVaultRSAPrivateKey
"""
return self


class DecryptResult:
"""The result of a decrypt operation.
Expand Down
1 change: 1 addition & 0 deletions sdk/keyvault/azure-keyvault-keys/dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
aiohttp>=3.0
azure-identity
azure-mgmt-keyvault==10.1.0
cryptography<47.0.0
parameterized>=0.7.3
python-dateutil>=2.8.0
2 changes: 1 addition & 1 deletion sdk/keyvault/azure-keyvault-keys/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ def immediate_return(_):

@pytest.fixture(scope="session")
def event_loop(request):
loop = asyncio.get_event_loop()
loop = asyncio.new_event_loop()
yield loop
loop.close()