Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Invalid EC key at get_locations #3

Open
coolcodecding opened this issue Aug 21, 2024 · 0 comments
Open

ValueError: Invalid EC key at get_locations #3

coolcodecding opened this issue Aug 21, 2024 · 0 comments

Comments

@coolcodecding
Copy link

I have generated keys and flashed an ESP32 (which seemed to work well). At first i had no results:
{'results': [], 'statusCode': '200'}

and after a few minutes i got
{'results': [{'datePublished': 1724241076293, 'payload': 'LHYLBwADBGPB5h4yDMucxvuBtwNoaN5qwNSeI9xIwcry75DigWvtGTx5++pe4NV+VODBThT5FggjCV0JWUlVpXIVCwqgT7s4HSub1bVZX2qSDebcmtF/I3Q=', 'description': 'found', 'id': 'nma57Na8s2yC/ECzoGYjZWC0dTAY4+JFftV0xbLBB9o=', 'statusCode': 0}], 'statusCode': '200'}

but decryption fails:
eph_key = ec.EllipticCurvePublicKey.from_encoded_point(ec.SECP224R1(), data[5:62])
ValueError: Invalid EC key.

What could be the reason?

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

No branches or pull requests

1 participant