Skip to content

Added packages to requirements and a small bug fix #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2023
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: 2 additions & 0 deletions requirements-kms.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
google-cloud-kms
azure-identity
azure-keyvault-keys
4 changes: 2 additions & 2 deletions securesystemslib/signer/_azure_signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, az_keyvaultid: str, az_keyid: str):

key_vault_key = key_client.get_key(az_keyid)
crypto_client = CryptographyClient(key_vault_key, credential=credential)

self.crypto_client = crypto_client
self.signature_algorithm = self._get_signature_algorithm(key_vault_key)

Expand Down Expand Up @@ -82,6 +82,6 @@ def sign(self, payload: bytes) -> Signature:
Signature.
"""

result = crypto_client.sign(SignatureAlgorithm.es256, payload)
result = self.crypto_client.sign(SignatureAlgorithm.es256, payload)

return Signature(result.keyid, result.signature.hex())