diff --git a/sdk/keyvault/azure-keyvault-keys/README.md b/sdk/keyvault/azure-keyvault-keys/README.md index 1ad7a1dbeacf..5fa94dc08f9a 100644 --- a/sdk/keyvault/azure-keyvault-keys/README.md +++ b/sdk/keyvault/azure-keyvault-keys/README.md @@ -151,9 +151,9 @@ This section contains code snippets covering common tasks: * [Update an existing Key](#update-an-existing-key "Update an existing Key") * [Delete a Key](#delete-a-key "Delete a Key") * [List Keys](#list-keys "List Keys") +* [Perform cryptographic operations](#cryptographic-operations) * [Asynchronously create a Key](#asynchronously-create-a-key "Asynchronously create a Key") * [Asynchronously list Keys](#asynchronously-list-keys "Asynchronously list Keys") -* [Perform cryptographic operations](#cryptographic-operations) ### Create a Key [create_rsa_key](https://aka.ms/azsdk/python/keyvault-keys/docs#azure.keyvault.keys.KeyClient.create_rsa_key) and diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_client.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_client.py index 648a892c0a72..dc65525215f0 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_client.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_client.py @@ -393,8 +393,9 @@ def verify(self, algorithm, digest, signature, **kwargs): :param algorithm: verification algorithm :type algorithm: :class:`~azure.keyvault.keys.crypto.SignatureAlgorithm` - :param bytes digest: - :param bytes signature: + :param bytes digest: Pre-hashed digest corresponding to **signature**. The hash algorithm used must be + compatible with **algorithm**. + :param bytes signature: signature to verify :rtype: :class:`~azure.keyvault.keys.crypto.VerifyResult` Example: diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/aio/_client.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/aio/_client.py index 6c1b31ef5754..ffd4966412bc 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/aio/_client.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/aio/_client.py @@ -344,8 +344,9 @@ async def verify( :param algorithm: verification algorithm :type algorithm: :class:`~azure.keyvault.keys.crypto.SignatureAlgorithm` - :param bytes digest: - :param bytes signature: + :param bytes digest: Pre-hashed digest corresponding to **signature**. The hash algorithm used must be + compatible with **algorithm**. + :param bytes signature: signature to verify :rtype: :class:`~azure.keyvault.keys.crypto.VerifyResult` Example: diff --git a/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/aio/_client.py b/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/aio/_client.py index 3f2b49b14302..0ae4b19f52ea 100644 --- a/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/aio/_client.py +++ b/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/aio/_client.py @@ -224,7 +224,7 @@ async def backup_secret(self, name: str, **kwargs: "Any") -> bytes: :class:`~azure.core.exceptions.ResourceNotFoundError` if the secret doesn't exist, :class:`~azure.core.exceptions.HttpResponseError` for other errors - Example: + Example: .. literalinclude:: ../tests/test_samples_secrets_async.py :start-after: [START backup_secret] :end-before: [END backup_secret]