@@ -109,7 +109,6 @@ def keyring(self, keys_uri, mode):
109
109
if input_kwargs ["key" ] == "rsa-4096-private" \
110
110
and mode in ("decrypt-generate" , "encrypt" ):
111
111
changed_key_name_from_private_to_public = True
112
- input ("YUP" )
113
112
input_kwargs ["key" ] = "rsa-4096-public"
114
113
# Specify default padding-hash
115
114
if "padding-hash" not in input_kwargs :
@@ -124,8 +123,6 @@ def keyring(self, keys_uri, mode):
124
123
GetKeyDescriptionInput (json = encoded_json )
125
124
)
126
125
127
- input (f"{ output .key_description = } " )
128
-
129
126
keyring : IKeyring = keyvectors .create_test_vector_keyring (
130
127
TestVectorKeyringInput (
131
128
key_description = output .key_description
@@ -162,13 +159,13 @@ def keyring(self, keys_uri, mode):
162
159
# This configuration seems to be correct, because
163
160
# all of the test vectors (master keys and MPL) pass with these two hacks.
164
161
# But this seems weird, and we didn't have to do this in Java.
165
- # if hasattr(keyring, "_impl"): # pylint: disable=protected-access
166
- # if hasattr(keyring._impl, "_keyName"): # pylint: disable=protected-access
167
- # if keyring._impl._keyName == UTF8.default__.Encode(_dafny.Seq("rsa-4096-public")).value \
168
- # and mode in ("decrypt-generate", "encrypt"): # pylint: disable=protected-access
169
- # if changed_key_name_from_private_to_public:
170
- # # pylint: disable=protected-access
171
- # keyring._impl._keyName = UTF8.default__.Encode(_dafny.Seq("rsa-4096-private")).value
162
+ if hasattr (keyring , "_impl" ): # pylint: disable=protected-access
163
+ if hasattr (keyring ._impl , "_keyName" ): # pylint: disable=protected-access
164
+ if keyring ._impl ._keyName == UTF8 .default__ .Encode (_dafny .Seq ("rsa-4096-public" )).value \
165
+ and mode in ("decrypt-generate" , "encrypt" ): # pylint: disable=protected-access
166
+ if changed_key_name_from_private_to_public :
167
+ # pylint: disable=protected-access
168
+ keyring ._impl ._keyName = UTF8 .default__ .Encode (_dafny .Seq ("rsa-4096-private" )).value
172
169
173
170
return keyring
174
171
@@ -201,9 +198,7 @@ def keyring_from_master_key_specs(keys_uri, master_key_specs, mode):
201
198
"""
202
199
keyrings = [spec .keyring (keys_uri , mode ) for spec in master_key_specs ]
203
200
primary = keyrings [0 ]
204
- input (f"{ primary = } " )
205
201
others = keyrings [1 :]
206
- input (f"{ others = } " )
207
202
208
203
mpl : AwsCryptographicMaterialProviders = AwsCryptographicMaterialProviders (
209
204
MaterialProvidersConfig ()
0 commit comments