8000 fixed style issues · MagicLegends/python-docs-samples@91a4324 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91a4324

Browse files
committed
fixed style issues
1 parent c4efd87 commit 91a4324

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kms/api-client/asymmetric.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.rom googleapiclient import discovery
1515

16+
# [START kms_asymmetric_imports]
1617
import base64
1718
import hashlib
1819

19-
# [START kms_asymmetric_imports]
2020
from cryptography.exceptions import InvalidSignature
2121
from cryptography.hazmat.backends import default_backend
2222
from cryptography.hazmat.primitives import hashes, serialization
2323
from cryptography.hazmat.primitives.asymmetric import ec, padding, utils
2424
# [END kms_asymmetric_imports]
2525

26+
2627
# [START kms_get_asymmetric_public]
2728
def getAsymmetricPublicKey(client, key_path):
2829
"""
@@ -47,7 +48,7 @@ def decryptRSA(ciphertext, client, key_path):
4748
Decrypt a given ciphertext using an 'RSA_DECRYPT_OAEP_2048_SHA256' private
4849
key stored on Cloud KMS
4950
"""
50-
request_body={'ciphertext': base64.b64encode(ciphertext).decode()}
51+
request_body = {'ciphertext': base64.b64encode(ciphertext).decode()}
5152
request = client.projects() \
5253
.locations() \
5354
.keyRings() \

0 commit comments

Comments
 (0)
0