Skip to content

Commit

Permalink
Merge pull request #1 from kommendorkapten/fixes
Browse files Browse the repository at this point in the history
Added packages to requirements and a small bug fix
  • Loading branch information
malancas authored May 24, 2023
2 parents f6ffa19 + a5317d1 commit 1502d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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())

0 comments on commit 1502d94

Please sign in to comment.