@@ -65,14 +65,18 @@ def Encrypt(self, dafny_encrypt_input):
6565 if native_encrypt_input .keyring is not None :
6666 native_esdk_input ["keyring" ] = native_encrypt_input .keyring
6767 if native_encrypt_input .materials_manager is not None :
68- native_esdk_input ["materials_manager" ] = native_encrypt_input .materials_manager
68+ native_esdk_input ["materials_manager" ] = (
69+ native_encrypt_input .materials_manager
70+ )
6971 if native_encrypt_input .algorithm_suite_id is not None :
7072 native_esdk_input ["algorithm" ] = AlgorithmSuite .get_by_id (
71- _mpl_algorithm_id_to_native_algorithm_id (native_encrypt_input .algorithm_suite_id )
73+ _mpl_algorithm_id_to_native_algorithm_id (
74+ native_encrypt_input .algorithm_suite_id
75+ )
7276 )
7377
74- native_esdk_ciphertext , native_esdk_header = (
75- self . native_esdk . encrypt ( ** native_esdk_input )
78+ native_esdk_ciphertext , native_esdk_header = self . native_esdk . encrypt (
79+ ** native_esdk_input
7680 )
7781
7882 # if native_encrypt_input.algorithm_suite_id is None:
@@ -150,10 +154,12 @@ def Decrypt(self, dafny_decrypt_input):
150154 if native_decrypt_input .keyring is not None :
151155 native_esdk_input ["keyring" ] = native_decrypt_input .keyring
152156 if native_decrypt_input .materials_manager is not None :
153- native_esdk_input ["materials_manager" ] = native_decrypt_input .materials_manager
157+ native_esdk_input ["materials_manager" ] = (
158+ native_decrypt_input .materials_manager
159+ )
154160
155- native_esdk_plaintext , native_esdk_header = (
156- self . native_esdk . encrypt ( ** native_esdk_input )
161+ native_esdk_plaintext , native_esdk_header = self . native_esdk . decrypt (
162+ ** native_esdk_input
157163 )
158164
159165 # if native_decrypt_input.materials_manager is not None:
0 commit comments