Skip to content

Commit a48ee25

Browse files
committed
refactor: cleanup unused imports and some print statements
1 parent 66cd02e commit a48ee25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

logic/message.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
MESSAGE_HASH_CHAIN_LEN,
3232
OTP_MAX_BUCKET,
3333
OTP_PAD_SIZE,
34-
OTP_SIZE_LENGTH,
3534
ML_KEM_1024_NAME,
3635
ML_KEM_1024_CT_LEN,
3736
ML_DSA_87_NAME,
@@ -288,13 +287,13 @@ def messages_data_handler(user_data: dict, user_data_lock, user_data_copied: dic
288287
try:
289288
contact_kyber_pads = decrypt_shared_secrets(otp_hashchain_ciphertext[:ML_KEM_1024_CT_LEN * (OTP_PAD_SIZE // 32)], our_kyber_key, ML_KEM_1024_NAME)
290289
except Exception as e:
291-
logger.error("Failed to decrypt Kyber's shared_secrets from contact (%s), received error: %s", contact_id, str(e))
290+
logger.error("Failed to decrypt ML-KEM-1024 ciphertext from contact (%s), received error: %s", contact_id, str(e))
292291
return
293292

294293
try:
295294
contact_mceliece_pads = decrypt_shared_secrets(otp_hashchain_ciphertext[ML_KEM_1024_CT_LEN * (OTP_PAD_SIZE // 32):], our_mceliece_key, CLASSIC_MCELIECE_8_F_NAME)
296295
except Exception as e:
297-
logger.error("Failed to decrypt McEliece's shared_secrets from contact (%s), received error: %s", contact_id, str(e))
296+
logger.error("Failed to decrypt Classic-McEliece8192128's ciphertext from contact (%s), received error: %s", contact_id, str(e))
298297
return
299298

300299
contact_pads, _ = one_time_pad(contact_kyber_pads, contact_mceliece_pads)

0 commit comments

Comments
 (0)