Jump to content


Photo

Cd Encryption Via Skunkboard


45 replies to this topic

#1 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 22 June 2009 - 07:45 PM

Hello folks!

After some experiments with the skunkboard and fixing my jagcd unit, I am now looking for an easy way to encrypt jagcds.
I know about the BJL based cd encryption, but it needs with a bjl cable (which requires a parallel port, that notebooks for example don't always have nowdays) or it needs a custom cable for xmodem transfer, which also requires a serial port that not all systems have now.

So the best solution in my opinion would be to use the skunkboard to encrypt cds and send the data using usb.
Now the BJL based encryption runs on the skunkboard it seems. However it would require code to send the encrypted data to the pc using usb.

So I was thinking maybe somebody of the jagware team can help?
Afterall there seem to be some people here who have experience with the cd encryption program and also the skunkboard.

Any help is very much appreciated.

Regards, Lars.
"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#2 SCPCD

SCPCD

    Rick dangerous

  • Level2
  • PipPipPip
  • 1,134 posts
  • Gender:Male
  • Location:Nord
  • Interests:Electronique & Informatique

Posted 24 June 2009 - 09:38 PM

Hi !

I don't know specification on the skunkboard to be used with the jagcd, but I think that it should be possible to patch the encryption code.
Is there the source code of the jag encryption part to download somewhere ?
Nyan ! :P

#3 Orion_

Orion_

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,078 posts
  • Gender:Male
  • Interests:OldSchool Coding =)

Posted 25 June 2009 - 07:40 AM

yes because I patched it to use the BJL cable instead of the serial cable for the hash table upload using Zerosquare's bjl jag to pc upload routine
now, is there any example code that allow skunk to pc upload via usb cable in the jaguar side ?
or if you have an option from the skunk pc tool to download portion of memory of the jaguar, it can be easy too
I don't have a skunkboard so I don't know how it works
my Website with all my homebrew projects !

"C'est la ou tu vois la supériorité de la vitamine C sur les dragibus !" - Fadest, RGC 2008

#4 Fadest

Fadest

    Super sprint

  • Level1
  • PipPip
  • 407 posts
  • Location:Disconnected...

Posted 25 June 2009 - 10:33 AM

I have no clue about the CD encryption process and no CD player so I can't help, but manual and sources for the Skunkboard are here :
http://www.harmlessl...arch=skunkboard

As there is a kind of white board between PC & Jaguar for debugging if I remember correctly, Jaguar may be able to send datas to PC...

#5 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 26 June 2009 - 08:52 AM

Hi Starcat,

I already played a bit with skunkboard & communication via USB (I did a simple remote file system).
I may be able to help you hack the source of the BJL version of the encryption process thus.

Cheers

& happy birthday a little bit late wink.gif
Seb/The Removers
http://removers.atari.org/

#6 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 26 June 2009 - 10:11 PM

QUOTE (SebRmv @ 26 Jun 2009, 09:52) <{POST_SNAPBACK}>
Hi Starcat,

I already played a bit with skunkboard & communication via USB (I did a simple remote file system).
I may be able to help you hack the source of the BJL version of the encryption process thus.

Cheers

& happy birthday a little bit late wink.gif


Thank you very much :-)

Also thanks a lot for offering your help. Personally I didn't get very far yet, so your help is very much appreciated. :-)
Do you know if the data sent back to pc can be written to a file? or just the console window?
If you want to discuss this privately, I'm happy to talk via PM or e-mail :-)
I think it would really help the community to have a usb based encryption approach.

Regards, Lars.


"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#7 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 29 June 2009 - 08:07 AM

QUOTE (Starcat @ 26 Jun 2009, 22:11) <{POST_SNAPBACK}>
Thank you very much :-)

Also thanks a lot for offering your help. Personally I didn't get very far yet, so your help is very much appreciated. :-)
Do you know if the data sent back to pc can be written to a file? or just the console window?
If you want to discuss this privately, I'm happy to talk via PM or e-mail :-)
I think it would really help the community to have a usb based encryption approach.

Regards, Lars.


No problem to discuss about this on this forum.

My modified version of JCP emulates all system calls related to files, so that I have a standard interface on the Jaguar side to access files on my PC (running linux).
This thus includes writing files.

I had a quick look to the encryption program (modified by Mathias Domin to run on BJL) and I think it should not be too difficult.
The main "difficulty" is to split big transfers into small ones, because Skunkboard may transfer blocks of data of about at most 4ko at once.
(so for bigger blocks, just split them into 4k blocks and take care)

I think it would probably be a good idea that the encryption process works on the original JCP version of Tursi (ie not on my modified version).
If I remember correctly, it should be possible to write files with it. (I will double check that)
However, I fear that there is a limitation over the size of the files (typically limited to one 4ko block).
Is it sufficient for the encryption key? What is its standard size?



Seb/The Removers
http://removers.atari.org/

#8 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 29 June 2009 - 01:45 PM

I don't exactly remember the size of the hashtable data, but it was rather small I think. I am not sure, but I would assume even 4K is enough.
It is later padded to 1MB when you burn it to cd.

"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#9 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 29 June 2009 - 02:35 PM

I hacked a bit the BJL version of Matthias and need to do some tests now (cross the fingers biggrin.gif)

If this works well, I will release the source code as well as the cof file.

Cheers

Seb/The Removers
http://removers.atari.org/

#10 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 01 July 2009 - 09:38 AM

Unfortunately, I don't have at home the required hardware to test my skunkboard version of the encryption process.
If anyone is volunteer to test it, I'll be happy to send the cof file.
Otherwise, I'll wait to get hands on a stock JagCD unit (I only have my dev JagCD at home, and it does not seem to work with a stock Jaguar)



Seb/The Removers
http://removers.atari.org/

#11 Orion_

Orion_

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,078 posts
  • Gender:Male
  • Interests:OldSchool Coding =)

Posted 01 July 2009 - 12:53 PM

find someone with skunboard + jagcd, I think your are the only ones ^^

my Website with all my homebrew projects !

"C'est la ou tu vois la supériorité de la vitamine C sur les dragibus !" - Fadest, RGC 2008

#12 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 01 July 2009 - 04:00 PM

I'd be happy to test it for you :-)
"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#13 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 02 July 2009 - 08:18 AM

Thanks Starcat for all your help this night.

I'll try to debug my code and I'll drop a message here when I have something that (may) work.



Seb/The Removers
http://removers.atari.org/

#14 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 02 July 2009 - 09:04 AM

No problem. smile.gif
If you want me to test another binary, just send it to me and I'll let you know. smile.gif
"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#15 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 02 July 2009 - 06:40 PM

I have checked my transfer code and this seems to work well.
Too bad I haven't my stock JagCD unit with me so that I can go further into my investigations.
Seb/The Removers
http://removers.atari.org/

#16 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 03 July 2009 - 09:55 AM

Just attached two versions of the encryption process: one uses uart/xmodem for transfers (this should correspond to original Matthias version), the other uses the SkunkBoard.

Could you test both please and tell me the results?

(as usual launch the skunkboard version with "jcp -c")

Attached Files


Seb/The Removers
http://removers.atari.org/

#17 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 04 July 2009 - 01:33 PM

It still writes the same data to the file. It's the pattern: It's C0 D0 AD E0. repeated for a more or less random file size between 30-70k depending on the try.
After a few tries it didn't create a file anymore.

However on the pc side it closes the command window and on the jag side it goes to a dark blueish/greenish screen.



"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#18 Starcat

Starcat

    Great giana sister

  • Members
  • Pip
  • 89 posts
  • Gender:Male
  • Location:Germany
  • Interests:Game development, reading, writing, music, movies, playing video games.

Posted 04 July 2009 - 02:01 PM

I just did a few tests myself using the transfer code and it should be fine.
My only guess is, something is messing up the data before tranfser.
Maybe it's the uart code causing trouble, maybe it's something skunk related causing trouble with the jag cd (although I doubt this, as the rest of the program seems to run fine)...

can anybody test if the data using the xmodem cable is correct or corrupted as well?
"Starcat" Lars Hannig
Author & Game Designer (B.Sc.)
http://www.larshannig.com

Eerievale
- The gothic fantasy Novel and Graphic Adventure Game for Dreamcast, Jaguar, PC
http://www.eerievale.com

#19 SebRmv

SebRmv

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,557 posts
  • Gender:Male
  • Location:Paris, France
  • Interests:J'aime jouer mais ce n'est pas très productif. Les jeux auxquels j'ai joué dans l'année sont: PES 5, Civ 4, Guild Wars, POP: The Two Thrones.<br />J'aime aussi coder. Je n'ai rien contre un bon film ou un bouquin. Il m'arrive aussi de ressortir mon violon.

Posted 04 July 2009 - 04:02 PM

QUOTE (Starcat @ 4 Jul 2009, 15:01) <{POST_SNAPBACK}>
I just did a few tests myself using the transfer code and it should be fine.
My only guess is, something is messing up the data before tranfser.
Maybe it's the uart code causing trouble, maybe it's something skunk related causing trouble with the jag cd (although I doubt this, as the rest of the program seems to run fine)...

can anybody test if the data using the xmodem cable is correct or corrupted as well?



There should not be any interactions with the UART code, since it is completely deactivated.

I tried apart the transfer code and it works well. So this can only be a bad interaction between either the JagCD and the skunk or between the encryption code and the skunk library.


Seb/The Removers
http://removers.atari.org/

#20 Orion_

Orion_

    Rick dangerous

  • Level1
  • PipPipPip
  • 1,078 posts
  • Gender:Male
  • Interests:OldSchool Coding =)

Posted 04 July 2009 - 04:25 PM

QUOTE (Starcat @ 4 Jul 2009, 14:33) <{POST_SNAPBACK}>
It still writes the same data to the file. It's the pattern: It's C0 D0 AD E0. repeated for a more or less random file size between 30-70k depending on the try.

you should have a few data at the beginning of the file depending on how much track you have on cd, then the rest of the file is using this pattern for any cd hash table


my Website with all my homebrew projects !

"C'est la ou tu vois la supériorité de la vitamine C sur les dragibus !" - Fadest, RGC 2008



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users