File tree 2 files changed +12
-4
lines changed
performance_tests/src/aws_encryption_sdk_performance_tests
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,13 @@ def encrypt_using_keyring(
59
59
commitment_policy = CommitmentPolicy .REQUIRE_ENCRYPT_REQUIRE_DECRYPT
60
60
)
61
61
62
- _ , _ = client .encrypt (
62
+ ciphertext_data , _ = client .encrypt (
63
63
source = plaintext_data ,
64
64
keyring = keyring
65
65
)
66
66
67
+ return ciphertext_data
68
+
67
69
68
70
def decrypt_using_keyring (
69
71
ciphertext_data : bytes ,
@@ -81,7 +83,9 @@ def decrypt_using_keyring(
81
83
commitment_policy = CommitmentPolicy .REQUIRE_ENCRYPT_REQUIRE_DECRYPT
82
84
)
83
85
84
- _ , _ = client .decrypt (
86
+ decrypted_plaintext_data , _ = client .decrypt (
85
87
source = ciphertext_data ,
86
88
keyring = keyring
87
89
)
90
+
91
+ return decrypted_plaintext_data
Original file line number Diff line number Diff line change @@ -42,11 +42,13 @@ def encrypt_using_key_provider(
42
42
commitment_policy = CommitmentPolicy .REQUIRE_ENCRYPT_REQUIRE_DECRYPT
43
43
)
44
44
45
- _ , _ = client .encrypt (
45
+ ciphertext_data , _ = client .encrypt (
46
46
source = plaintext_data ,
47
47
key_provider = key_provider
48
48
)
49
49
50
+ return ciphertext_data
51
+
50
52
51
53
def decrypt_using_key_provider (
52
54
ciphertext_data : bytes ,
@@ -64,7 +66,9 @@ def decrypt_using_key_provider(
64
66
commitment_policy = CommitmentPolicy .REQUIRE_ENCRYPT_REQUIRE_DECRYPT
65
67
)
66
68
67
- _ , _ = client .decrypt (
69
+ decrypted_plaintext_data , _ = client .decrypt (
68
70
source = ciphertext_data ,
69
71
key_provider = key_provider
70
72
)
73
+
74
+ return decrypted_plaintext_data
You can’t perform that action at this time.
0 commit comments