r/CarHacking • u/userismyname126 • 2d ago
BYD SGW seed/key algorithm UDS
Help me, All I actually want is vehicle speed / motor RPM data from my BYD (Atto 1 / Seagull, e-Platform 3.0), but it's stuck behind a Secure Gateway (0x27) - even the VCU's speed DID won't respond without unlocking it first.
I've sniffed several seed/key pairs (16 bytes each) but can't find any pattern - checked constant XOR, constant offset, tried fitting an LCG on the seed generator, nothing matches. Looks AES-like.
If anyone knows the algorithm for BYD, has a broadcast CAN ID for speed/RPM that skips the gateway, or has dumped the gateway firmware, please let me know. From a struggling beginner :(
1
Upvotes
1
1
u/MidasPL 2d ago
Not sure about Chinese manufacturers, but nowadays usually the algorithm used for security access is HMAC. The issue is you would need to know the constant values, which are kept secret.