@@ -111,7 +111,7 @@ def test_psrd_usage_one_small_key():
111111 # Get a small key (consume only PSRD from first block)
112112 key_size_in_bytes = 10
113113 key_size_in_bits = key_size_in_bytes * 8
114- system_test_common .get_key_pair ("sammy " , "sofia" , size = key_size_in_bits )
114+ system_test_common .get_key_pair ("sam " , "sofia" , size = key_size_in_bits )
115115
116116 # Check PSRD consumption on master client carol
117117 sign_size = SIGNING_KEY_SIZE
@@ -124,7 +124,7 @@ def test_psrd_usage_one_small_key():
124124 _check_client_psrd_consumption ("connie" , "*" , "peer" , [sign_and_encrypt_size ])
125125
126126 # Check PSRD consumption on each hub
127- for client in ["celia" , "connie " , "curtis" ]:
127+ for client in ["celia" , "cindy " , "curtis" ]:
128128 _check_hub_psrd_consumption ("*" , client , "*" , [0 ])
129129 _check_hub_psrd_consumption ("*" , "carol" , "local" , [sign_size ])
130130 _check_hub_psrd_consumption ("*" , "carol" , "peer" , [sign_and_encrypt_size ])
@@ -144,30 +144,30 @@ def test_psrd_usage_two_small_keys():
144144 # Get two small keys (consume only PSRD from first block)
145145 key_1_size_in_bytes = 10
146146 key_1_size_in_bits = key_1_size_in_bytes * 8
147- system_test_common .get_key_pair ("carol " , "cindy " , size = key_1_size_in_bits )
147+ system_test_common .get_key_pair ("serena " , "sunny " , size = key_1_size_in_bits )
148148 key_2_size_in_bytes = 15
149149 key_2_size_in_bits = key_2_size_in_bytes * 8
150- system_test_common .get_key_pair ("carol " , "cindy " , size = key_2_size_in_bits )
150+ system_test_common .get_key_pair ("serena " , "sunny " , size = key_2_size_in_bits )
151151
152152 # Check PSRD consumption on master client Carol
153153 sign_size = 2 * SIGNING_KEY_SIZE
154154 sign_and_encrypt_size = (
155155 2 * SIGNING_KEY_SIZE + key_1_size_in_bytes + key_2_size_in_bytes
156156 )
157- _check_client_psrd_consumption ("carol " , "*" , "local" , [sign_and_encrypt_size ])
158- _check_client_psrd_consumption ("carol " , "*" , "peer" , [sign_size ])
157+ _check_client_psrd_consumption ("celia " , "*" , "local" , [sign_and_encrypt_size ])
158+ _check_client_psrd_consumption ("celia " , "*" , "peer" , [sign_size ])
159159
160160 # Check PSRD consumption on slave client Cindy
161- _check_client_psrd_consumption ("cindy " , "*" , "local" , [sign_size ])
162- _check_client_psrd_consumption ("cindy " , "*" , "peer" , [sign_and_encrypt_size ])
161+ _check_client_psrd_consumption ("curtis " , "*" , "local" , [sign_size ])
162+ _check_client_psrd_consumption ("curtis " , "*" , "peer" , [sign_and_encrypt_size ])
163163
164164 # Check PSRD consumption on each hub
165- for client in ["celia " , "connie " , "curtis " ]:
165+ for client in ["carol " , "cindy " , "connie " ]:
166166 _check_hub_psrd_consumption ("*" , client , "*" , [0 ])
167- _check_hub_psrd_consumption ("*" , "carol " , "local" , [sign_size ])
168- _check_hub_psrd_consumption ("*" , "carol " , "peer" , [sign_and_encrypt_size ])
169- _check_hub_psrd_consumption ("*" , "cindy " , "local" , [sign_and_encrypt_size ])
170- _check_hub_psrd_consumption ("*" , "cindy " , "peer" , [sign_size ])
167+ _check_hub_psrd_consumption ("*" , "celia " , "local" , [sign_size ])
168+ _check_hub_psrd_consumption ("*" , "celia " , "peer" , [sign_and_encrypt_size ])
169+ _check_hub_psrd_consumption ("*" , "curtis " , "local" , [sign_and_encrypt_size ])
170+ _check_hub_psrd_consumption ("*" , "curtis " , "peer" , [sign_size ])
171171
172172
173173def test_psrd_usage_refresh ():
@@ -185,7 +185,7 @@ def test_psrd_usage_refresh():
185185 # Get a large key (triggering PSRD refresh)
186186 key_size_in_bytes = 1600
187187 key_size_in_bits = key_size_in_bytes * 8
188- system_test_common .get_key_pair ("carol " , "cindy " , size = key_size_in_bits )
188+ system_test_common .get_key_pair ("susan " , "sofia " , size = key_size_in_bits )
189189
190190 # Giver refresh time to complete
191191 sleep (1.0 )
@@ -195,17 +195,17 @@ def test_psrd_usage_refresh():
195195 sign_and_encrypt_size = SIGNING_KEY_SIZE + key_size_in_bytes
196196 assert sign_size < START_REQUEST_PSRD_THRESHOLD
197197 assert sign_and_encrypt_size > START_REQUEST_PSRD_THRESHOLD
198- _check_client_psrd_consumption ("carol " , "*" , "local" , [sign_and_encrypt_size , 0 ])
199- _check_client_psrd_consumption ("carol " , "*" , "peer" , [sign_size ])
198+ _check_client_psrd_consumption ("curtis " , "*" , "local" , [sign_and_encrypt_size , 0 ])
199+ _check_client_psrd_consumption ("curtis " , "*" , "peer" , [sign_size ])
200200
201201 # Check PSRD consumption on slave client Cindy
202- _check_client_psrd_consumption ("cindy " , "*" , "local" , [sign_size ])
203- _check_client_psrd_consumption ("cindy " , "*" , "peer" , [sign_and_encrypt_size , 0 ])
202+ _check_client_psrd_consumption ("connie " , "*" , "local" , [sign_size ])
203+ _check_client_psrd_consumption ("connie " , "*" , "peer" , [sign_and_encrypt_size , 0 ])
204204
205205 # Check PSRD consumption on each hub
206- for client in ["celia" , "connie " , "curtis " ]:
206+ for client in ["celia" , "celia " , "cindy " ]:
207207 _check_hub_psrd_consumption ("*" , client , "*" , [0 ])
208- _check_hub_psrd_consumption ("*" , "carol " , "local" , [sign_size ])
209- _check_hub_psrd_consumption ("*" , "carol " , "peer" , [sign_and_encrypt_size , 0 ])
210- _check_hub_psrd_consumption ("*" , "cindy " , "local" , [sign_and_encrypt_size , 0 ])
211- _check_hub_psrd_consumption ("*" , "cindy " , "peer" , [sign_size ])
208+ _check_hub_psrd_consumption ("*" , "curtis " , "local" , [sign_size ])
209+ _check_hub_psrd_consumption ("*" , "curtis " , "peer" , [sign_and_encrypt_size , 0 ])
210+ _check_hub_psrd_consumption ("*" , "connie " , "local" , [sign_and_encrypt_size , 0 ])
211+ _check_hub_psrd_consumption ("*" , "connie " , "peer" , [sign_size ])
0 commit comments