in resources/code/my-first-enclave/cryptographic-attestation/server.py [0:0]
def decrypt_cipher(access, secret, token, ciphertext, region):
"""
use KMS Tool Enclave Cli to decrypt cipher text
"""
proc = subprocess.Popen(
[
"/app/kmstool_enclave_cli",
"--region", region,
"--proxy-port", KMS_PROXY_PORT,
"--aws-access-key-id", access,
"--aws-secret-access-key", secret,
"--aws-session-token", token,
"--ciphertext", ciphertext,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE