AtariAge Forums: Jag Encryption - Round 2 - AtariAge Forums

Jump to content

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Jag Encryption - Round 2

User is offline Curt Vendel Icon
Posted Wed Nov 12, 2003 12:36 PM


  • Icon
  • River Patroller
  • PM this member
  • Posts: 3,871
  • Joined: 23-April 01
  • Location: Carmel, New York
Okay...

I believe that these are THE disks, Glenn Bruner said to look for a disk marked with DAVE on it, well the jagcdenc2.zip came from a diskette marked CDAVEZ and the jagenc2.zip disk for Cart encryption was in the same envelope....

Okay guys, work them over, see if they are THE real deal.



Curt

Attached File(s)


0

User is offline Stone Icon
Posted Wed Nov 12, 2003 2:42 PM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,701
  • Joined: 08-November 01
  • Location: UK
It's an ST format program and will run under Steem. Hit 'Y' to get past the first prompt and '0' for the second...I can't read all the text because Steem crops it.

And I always get 'File Read Error' after it says 'Calculating MD5 checksum'. But it looks like it could be the real deal...the key file is more important than the program though...:?

Let's hope :)

Stone
0

User is offline belboz Icon
Posted Wed Nov 12, 2003 3:07 PM


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 403
  • Joined: 01-September 03
  • Location: Ohio
Actually I think you are suppose to use the Jaguar to do the encryption. I believe you load the cdenc.db file in rdbjag or wdb and it reads the key off the floppy and writes out a hash table and report to the floppy disk.

The cdenc.db file actually loads the cdencr.db file for you.

Looks like the cdencr.db file loads the encryption code onto the Alpine memory space, and sets the program counter to 802000.

Then it goes back to the cdenc.db file and executes the code, reads the private key in off floppy, executes the code to do the hash table generation, dumps out the hash table and the cdreport to disk.

This looks pretty interesting....

Can't wait to get a chance to test it.
0

User is offline Shamus Icon
Posted Wed Nov 12, 2003 4:58 PM

    • Moo, er, Roar!


  • Icon
  • Chopper Commander
  • PM this member
  • Posts: 136
  • Joined: 07-November 03
  • Location: Ur-th
Well, it looks like jagenc2.zip is the real deal. :D I used it to "encrypt" the ROM image of Phase Zero and it passed the BIOS check with flying colors. Here are the steps I followed:

First, I stripped off the 8K of $FFs in front of the ROM image so that I was left with the raw binary image that loads/runs at $802000. Then, I put the PRIVATE.KEY on a floppy and ran the JAGENX.PRG (it's an ST program, and runs faster than the JAGEN.PRG version). It'll ask you if you want to use a precomputed key (which, if you haven't run JAGENX yet, won't exist) to which you'll say no. It will then ask for a floppy with PRIVATE.KEY on it. Once it reads the key, it will ask you which format to write out. Select option "1", 4 ROMs. Then it will ask you where the ROM image file is (you did put it on the ST hard disk, didn't you? :)). Once you tell it where the ROM image file is, it goes to work crunching the data. Once this is over, you should have some files called FOO.U1, FOO.U2, FOO.U3 and FOO.U4 (where FOO is the name of the ROM image file). These files contain the "encrypted" ROM image with .U4 holding the Most significant bytes, .U3 holding the Next Most significant bytes, .U2 holding the Next Least significant bytes, and .U1 holding the Least significant bytes.

Combining .U1-4 into a regular ROM dump is left to the reader as an exercise. ;)

One other thing: You'll want to run JAGENX.PRG in either medium or high resolution, otherwise you won't be able to see the whole text screen. 8)
0

User is offline atarifan49 Icon
Posted Wed Nov 12, 2003 5:48 PM


  • Icon
  • Dragonstomper
  • PM this member
  • View blog
  • Posts: 522
  • Joined: 24-March 02
  • Location: Lompoc, CA
I know what I'm doing tonight. Keep your fingers crossed!!!

If this is it, Curt you are the MAN!!!!!


Glenn
0

User is offline jaysmith2000 Icon
Posted Wed Nov 12, 2003 10:17 PM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,876
  • Joined: 21-August 02

atarifan49 said:

I know what I'm doing tonight.  Keep your fingers crossed!!!

If this is it, Curt you are the MAN!!!!!


Glenn


I'll wait for Glenn's (Mr. Jaguar) confirmation, but I do believe Curt is the man. This definitely appears to be what we have all been craving for years. Wowzers!

Jason
0

User is offline belboz Icon
Posted Wed Nov 12, 2003 10:21 PM


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 403
  • Joined: 01-September 03
  • Location: Ohio
I am pretty sure this is the real deal.

I took my Myst Demo CD which is obviously a signed bootable CD without a bypass cart. I ran the encryption generation utility on the CD which gave me a hashtable.

I ripped the hashtable from the Myst CD itself with isobuster. Byte swapped the file, and ran Atari's trkfix on it.

I did a byte by byte file comparison of the two files and the hash tables were indentical! :D

So I think it is a pretty safe bet to say this is the real deal!

Way to go Curt!!!!!!
0

User is offline jaysmith2000 Icon
Posted Wed Nov 12, 2003 10:47 PM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,876
  • Joined: 21-August 02

belboz said:

I am pretty sure this is the real deal.

I took my Myst Demo CD which is obviously a signed bootable CD without a bypass cart.  I ran the encryption generation utility on the CD which gave me a hashtable.

I ripped the hashtable from the Myst CD itself with isobuster.  Byte swapped the file, and ran Atari's trkfix on it.  

I did a byte by byte file comparison of the two files and the hash tables were indentical!  :D  

So I think it is a pretty safe bet to say this is the real deal!

Way to go Curt!!!!!!


Awesome Belboz! This is fantastic news....

I just have to say, that I'm not surprised Curt made this incredible discovery. Not only does he always "find" the rarest of the rare items for all Atari systems, but he openly shares them with the community, making the hobby more enjoyable for us all!

Curt Vendel is MR. ATARI for all Atarians. Curt, I'm sure I speak for everyone when I say "THANK YOU" for your continued contributions to the community. You RULE MAN!

Jason
0

User is offline belboz Icon
Posted Wed Nov 12, 2003 10:54 PM


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 403
  • Joined: 01-September 03
  • Location: Ohio
I'm burning a CDR right now with a little test Jag program I wrote.

Hopefully it will work without a bypass cart.

Stay tuned!
0

User is offline Shamus Icon
Posted Wed Nov 12, 2003 11:52 PM

    • Moo, er, Roar!


  • Icon
  • Chopper Commander
  • PM this member
  • Posts: 136
  • Joined: 07-November 03
  • Location: Ur-th
Curt is most definitely the man. 8)

For those of you who still doubt, I've put up a copy of the "encrypted" Phase Zero ROM image up on Virtual Jaguar's webspace.

Check it and see for yourself. :)
0

User is offline JagWarlord Icon
Posted Thu Nov 13, 2003 12:07 AM


  • Icon
  • Dragonstomper
  • PM this member
  • Posts: 674
  • Joined: 23-July 03
CURT! CURT! Hes are man if he can't do it no one can GOOOOO CURT!!!!!!!!! :D
0

User is offline Tyrant Icon
Posted Thu Nov 13, 2003 12:07 AM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,295
  • Joined: 23-October 01
  • Location: London, UK
/me waves bye bye to bypass carts :)

Looks like the dawn of a new age is upon us.
0

User is offline Curt Vendel Icon
Posted Thu Nov 13, 2003 12:27 AM


  • Icon
  • River Patroller
  • PM this member
  • Posts: 3,871
  • Joined: 23-April 01
  • Location: Carmel, New York
Happy 10th Anniversary for the Jaguar 64 guys, can't think of a better anniversary present.

and thanks for all the great compliments.....




Curt
0

User is offline belboz Icon
Posted Thu Nov 13, 2003 12:38 AM


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 403
  • Joined: 01-September 03
  • Location: Ohio
Ok, my attempt didn't work. :?

I'm not 100% sure how I should pad the encryption file. My sample program is tiny (64K or so). The generated hash from the encryption software was small. I noticed after I burnt my disk and it didn't work that the commercial disks i've got have a much more zero padded track with the hash in it.

Its getting late so hopefully Glenn on the west coast has more luck than I did.

I still believe this is the real thing and the problem with it not booting was caused by me.
0

User is offline Tyrant Icon
Posted Thu Nov 13, 2003 1:13 AM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,295
  • Joined: 23-October 01
  • Location: London, UK
Why dont you try encripting something bigger, like BIWN or American Hero? I'd have a go, but I dont have all the tools set up yet.
0

User is offline Stone Icon
Posted Thu Nov 13, 2003 2:13 AM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,701
  • Joined: 08-November 01
  • Location: UK

Shamus said:

Combining .U1-4 into a regular ROM dump is left to the reader as an exercise. ;)


You can use Atari's code for this too ;) 'ROMSPLIT filename' is the cmdline :D

And yes, it worked for me too. Byebye universal header!

Quote

One other thing: You'll want to run JAGENX.PRG in either medium or high resolution, otherwise you won't be able to see the whole text screen. 8)

Thanks for that, some of us are unfamiliar with STs :)

Stone
0

User is offline atarifan49 Icon
Posted Thu Nov 13, 2003 2:24 AM


  • Icon
  • Dragonstomper
  • PM this member
  • View blog
  • Posts: 522
  • Joined: 24-March 02
  • Location: Lompoc, CA

Shamus said:

Well, it looks like jagenc2.zip is the real deal. :D I used it to "encrypt" the ROM image of Phase Zero and it passed the BIOS check with flying colors. Here are the steps I followed:

First, I stripped off the 8K of $FFs in front of the ROM image so that I was left with the raw binary image that loads/runs at $802000. Then, I put the PRIVATE.KEY on a floppy and ran the JAGENX.PRG (it's an ST program, and runs faster than the JAGEN.PRG version). It'll ask you if you want to use a precomputed key (which, if you haven't run JAGENX yet, won't exist) to which you'll say no. It will then ask for a floppy with PRIVATE.KEY on it. Once it reads the key, it will ask you which format to write out. Select option "1", 4 ROMs. Then it will ask you where the ROM image file is (you did put it on the ST hard disk, didn't you? :)). Once you tell it where the ROM image file is, it goes to work crunching the data. Once this is over, you should have some files called FOO.U1, FOO.U2, FOO.U3 and FOO.U4 (where FOO is the name of the ROM image file). These files contain the "encrypted" ROM image with .U4 holding the Most significant bytes, .U3 holding the Next Most significant bytes, .U2 holding the Next Least significant bytes, and .U1 holding the Least significant bytes.

Combining .U1-4 into a regular ROM dump is left to the reader as an exercise. ;)

One other thing: You'll want to run JAGENX.PRG in either medium or high resolution, otherwise you won't be able to see the whole text screen. 8)



Shamus,

Good job on verifying the private.key for the cartridge!!

YES!!! As much as the Tramiels tried to kill and bury the Jag, the Jag community wins in the end!! LONG LIVE THE JAG!!!

Glenn
0

User is offline atarifan49 Icon
Posted Thu Nov 13, 2003 2:35 AM


  • Icon
  • Dragonstomper
  • PM this member
  • View blog
  • Posts: 522
  • Joined: 24-March 02
  • Location: Lompoc, CA
Ok guys!! I have successfully encrypted a CD that contains a small subset of my JagAds CD.

I made a CD with a boot track and two short movie tracks. In addition to this I had to add a dummy track to represent the track that the encryption data will occupy. This is so that the CD table of contents contains the proper placeholder data for this track.

I used the CDEN13 program and generated the HASHTAB.CD and CDREPORT.TXT files. Since my dummy track was around $100000 (in hex) bytes long, I padded the hashtab.cd file to this size and added the two zero bytes to the front of the file. I then burned a new CD with the encryption track entered in the place where I put the dummy track.

Then I ran the CDVER program and let it run. It fully verified the CD and it passed the check!!! I then switch my Jag setup to a production style system and booted the CD just fine!!! And lastly I ran the CDVERSLO program and did another verify with another program.

My next test plan is to take an existing encrypted Jaguar CD (Myst Demo) and rip the tracks and try and duplicate the process that I did above on that. And then compare the two separate HASHTAB.CD files to confirm. The trick to this is to hope that I get a perfect read of the CD to support this.

But I'm about 99.9% sure that Curt has found the key!!! Excellent work and the absolute perfect anniversary gift anyone could give! Curt, this tops the finding of the universal key!!

This is so great!!! Now we can encrypt CD's and carts and have a way to ensure what we produce fully working CD's and cartridges.

LONG LIVE THE JAG!!! 8)

Glenn
0

User is online TXG/MNX Icon
Posted Thu Nov 13, 2003 4:02 AM


  • Icon
  • River Patroller
  • PM this member
  • Posts: 2,528
  • Joined: 26-December 02
Hmm this is the best news ever ! I can't wait to make a cd myself in the future that runs on any unmodified console. Incredible... I hope curt can find much much more new Jag stuff seems that the last year we have hit the jackpot finding all kinds of Atari jaguar things :P
0

User is offline LinkoVitch Icon
Posted Thu Nov 13, 2003 4:33 AM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,705
  • Joined: 07-September 02
  • Location: Warrington UK
I can't believe I missed this entire Thread.. thanks Tyrant for letting me know! This news is AWESOME!

WOOHOO! YAY!

Curt Truley is King Atari...

All hail King CURT! :)
0

User is offline Saturn Icon
Posted Thu Nov 13, 2003 4:43 AM

    • Pillar of the Jaguar Community


  • Icon
  • River Patroller
  • PM this member
  • Posts: 2,831
  • Joined: 28-August 02
  • Location: TX

jaysmith2000 said:

Curt Vendel is MR. ATARI for all Atarians.  Curt, I'm sure I speak for everyone when I say "THANK YOU" for your continued contributions to the community.  You RULE MAN!
This is the biggest find of all time! Way to go, Curt! :D :D :D :D :D
0

User is offline justclaws Icon
Posted Thu Nov 13, 2003 5:51 AM

    • Underground but not dead.


  • Icon
  • Dragonstomper
  • PM this member
  • View blog
  • Posts: 918
  • Joined: 12-February 03
  • Location: England or Holland
Hello,

Curt Vendel said:

I believe that these are THE disks, Glenn Bruner said to look for a disk marked with DAVE on it, well the jagcdenc2.zip came from a diskette marked CDAVEZ and the jagenc2.zip disk for Cart encryption was in the same envelope....

I'm dreaming, I know I am. You're just TOO cool Curt! ;-)
Any chance we'll ever hear the story of their discovery?

When my pulse returns to normal, I'll really take this in!

Cheers,
Richard / JustClaws.
0

User is offline K3V Icon
Posted Thu Nov 13, 2003 6:58 AM


  • Icon
  • Dragonstomper
  • PM this member
  • Posts: 560
  • Joined: 30-October 01
  • Location: NY, USA
Just had to chime in with the chorus of "Yay Curt!"

:D
0

User is offline PeterG Icon
Posted Thu Nov 13, 2003 7:12 AM


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 415
  • Joined: 25-February 02
  • Location: Germany
I'm doing the backing Vocals....
Uhhhhhh Yeahhhhh :D
Peter
0

User is offline Tyrant Icon
Posted Thu Nov 13, 2003 8:07 AM


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,295
  • Joined: 23-October 01
  • Location: London, UK
I'll go rip the "Phunkey" drop out from T2k green road music :)
0

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users