@@ -199,9 +199,9 @@ def bit_unpack_w(self, input_bytes, gamma_2):
199
199
coefficients = self .__bit_unpack (input_bytes , 6 )
200
200
# Level 3 and 5 parameter set
201
201
else :
202
- assert (
203
- gamma_2 == 261888
204
- ), f"Expected gamma_2 to be either (q-1)/88 or (q-1)/32, got { gamma_2 = } "
202
+ assert gamma_2 == 261888 , (
203
+ f"Expected gamma_2 to be either (q-1)/88 or (q-1)/32, got { gamma_2 = } "
204
+ )
205
205
coefficients = self .__bit_unpack (input_bytes , 4 )
206
206
207
207
return self (coefficients )
@@ -212,9 +212,9 @@ def bit_unpack_z(self, input_bytes, gamma_1):
212
212
altered_coeffs = self .__bit_unpack (input_bytes , 18 )
213
213
# Level 3 and 5 parameter set
214
214
else :
215
- assert gamma_1 == (
216
- 1 << 19
217
- ), f"Expected gamma_1 to be either 2^17 or 2^19, got { gamma_1 = } "
215
+ assert gamma_1 == (1 << 19 ), (
216
+ f"Expected gamma_1 to be either 2^17 or 2^19, got { gamma_1 = } "
217
+ )
218
218
altered_coeffs = self .__bit_unpack (input_bytes , 20 )
219
219
220
220
coefficients = [gamma_1 - c for c in altered_coeffs ]
@@ -350,9 +350,9 @@ def bit_pack_w(self, gamma_2):
350
350
if gamma_2 == 95232 :
351
351
return self .__bit_pack (self .coeffs , 6 , 192 )
352
352
# Level 3 and 5 parameter set
353
- assert (
354
- gamma_2 == 261888
355
- ), f"Expected gamma_2 to be either (q-1)/88 or (q-1)/32, got { gamma_2 = } "
353
+ assert gamma_2 == 261888 , (
354
+ f"Expected gamma_2 to be either (q-1)/88 or (q-1)/32, got { gamma_2 = } "
355
+ )
356
356
return self .__bit_pack (self .coeffs , 4 , 128 )
357
357
358
358
def bit_pack_z (self , gamma_1 ):
@@ -361,9 +361,9 @@ def bit_pack_z(self, gamma_1):
361
361
if gamma_1 == (1 << 17 ):
362
362
return self .__bit_pack (altered_coeffs , 18 , 576 )
363
363
# Level 3 and 5 parameter set
364
- assert gamma_1 == (
365
- 1 << 19
366
- ), f"Expected gamma_1 to be either 2^17 or 2^19, got: { gamma_1 = } "
364
+ assert gamma_1 == (1 << 19 ), (
365
+ f"Expected gamma_1 to be either 2^17 or 2^19, got: { gamma_1 = } "
366
+ )
367
367
return self .__bit_pack (altered_coeffs , 20 , 640 )
368
368
369
369
def make_hint (self , other , alpha ):
0 commit comments