RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Fri Dec 26, 2025 12:17 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: decrypt a .dat file
PostPosted: Mon Feb 01, 2021 12:05 pm 
Offline
Experienced

Joined: Tue Apr 03, 2018 6:56 am
Posts: 124
Fenugrec,
I am trying to decrypt a .dat from a cvt file and get the wrong file. is your decryption utility only for ecm? scode is the same for all automatic transmission files.
Decrypt work well. But unpackdat need add code for const uint8_t pm[]={0x88, 0x34, 0x81};
I changed 82 to 81 and will almost unpack the .dat almost correctly, however it loses a few bytes.
can you help me?

********************
**** Started analyzing 310365UD2A.dat
addr skip @ A000
addr skip @ 60000 // it's mistake
total: 9912 chunks; 1268736 (0x135C00) bytes in PL.


Top
 Profile  
 
 Post subject: Re: decrypt a .dat file
PostPosted: Thu Feb 04, 2021 2:56 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
pirelli2006 wrote:
is your decryption utility only for ecm?

I only tested it on a few ECU repro files.

It's a tool I made for my own use, but decided to publish anyway in case it could be useful to others.
I don't have time or motivation to develop it beyond maybe accepting patches or PRs.

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: decrypt a .dat file
PostPosted: Thu Feb 04, 2021 5:15 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 2:31 pm
Posts: 1615
Location: Moscow, Russia
Toyota uses the same algo and different crypto tables for a particular processor.
Here may be a similar approach.


Top
 Profile  
 
 Post subject: Re: decrypt a .dat file
PostPosted: Fri Feb 05, 2021 11:32 am 
Offline
Experienced

Joined: Tue Apr 03, 2018 6:56 am
Posts: 124
i'm try const uint8_t pm[]={0x88, 0x34, 0x81};
and its so good work for cvt AT crypted files.
You can created unpackdat.c for this cvt, at.
Thank you so much. You are the best!!!


Top
 Profile  
 
 Post subject: Re: decrypt a .dat file
PostPosted: Thu Sep 30, 2021 12:58 pm 
Offline
Newbie
User avatar

Joined: Wed Jul 25, 2018 4:31 am
Posts: 54
Location: Moscow
pirelli2006 wrote:
Fenugrec,
I am trying to decrypt a .dat from a cvt file and get the wrong file. is your decryption utility only for ecm? scode is the same for all automatic transmission files.
Decrypt work well. But unpackdat need add code for const uint8_t pm[]={0x88, 0x34, 0x81};
I changed 82 to 81 and will almost unpack the .dat almost correctly, however it loses a few bytes.
can you help me?

********************
**** Started analyzing 310365UD2A.dat
addr skip @ A000
addr skip @ 60000 // it's mistake
total: 9912 chunks; 1268736 (0x135C00) bytes in PL.

The same situation with decrypting *.dat file fom Denso Diesel ECM YD25DDTi with SH7059 (R51, D40...) :D
********************
**** Started analyzing 237017X47E.dat
addr skip @ 8000
addr skip @ 17FA00 // it's mistake
addr skip @ 17FB80 // it's mistake
total: 12028 chunks; 1539584 (0x177E00) bytes in PL.

~900 Bytes (FFh) are lose.

_________________
SPEED-LIMIT-OFF Hyundai Staria US4 MD1CS012-4.1 391C0-2F303
SPEED-LIMIT-OFF Hyundai Staria US4 MD1CS012-5.1 391C0-2F403
Nissan/Infiniti TCM AT RE5 RE7 Bosch Hitachi firmware
Nissan/Infiniti customized ASCD (Cruise-Control) ECM firmware
+7-9OI-7I3-57-95


Last edited by P1on3R on Fri Oct 01, 2021 4:21 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: decrypt a .dat file
PostPosted: Thu Sep 30, 2021 3:50 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
P1on3R wrote:
The same situation with decrypting *.dat file fom Denso Diesel ECM with SH70529 (R51, D40...)


Thanks for the bug report. But as I said earlier there's not much I can do about it in my free time except maybe merging a PR or patch.

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl