Skip to content

Conversation

@HudZah
Copy link

@HudZah HudZah commented Dec 5, 2025

  • Add AES-GCM decryption for encrypted con_notify response
  • Check data2 field to detect protocol version 2
  • Decrypt data1 before extracting RSA key when data2=2
  • Add cryptography package dependency
  • Replace print with logger.warning for consistency

This fixes the 'RSA key format is not supported' error that occurs with firmware 1.1.8+ which encrypts the data1 field in the con_notify response using AES-GCM.

- Add AES-GCM decryption for encrypted con_notify response
- Check data2 field to detect protocol version 2
- Decrypt data1 before extracting RSA key when data2=2
- Add cryptography package dependency
- Replace print with logger.warning for consistency

This fixes the 'RSA key format is not supported' error that occurs
with firmware 1.1.8+ which encrypts the data1 field in the con_notify
response using AES-GCM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant