IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Cd Encryption Via Skunkboard, Who can help it come true?
Starcat
post 22 Jun 2009, 19:45
Post #1


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



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
Go to the top of the page
 
+Quote Post
SCPCD
post 24 Jun 2009, 21:38
Post #2


Rick dangerous
***

Group: Level2
Posts: 1.131
Joined: 13-5 05
From: Nord
Member No.: 5



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
Go to the top of the page
 
+Quote Post
Orion_
post 25 Jun 2009, 07:40
Post #3


Rick dangerous
***

Group: Level1
Posts: 1.048
Joined: 2-1 06
Member No.: 29



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
Go to the top of the page
 
+Quote Post
Fadest
post 25 Jun 2009, 10:33
Post #4


Super sprint
**

Group: Level1
Posts: 407
Joined: 1-2 06
From: Disconnected...
Member No.: 32



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.harmlesslion.com/cgi-bin/showpr...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...
Go to the top of the page
 
+Quote Post
SebRmv
post 26 Jun 2009, 08:52
Post #5


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



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


--------------------
Go to the top of the page
 
+Quote Post
Starcat
post 26 Jun 2009, 22:11
Post #6


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



QUOTE (SebRmv @ 26 Jun 2009, 09:52) *
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
Go to the top of the page
 
+Quote Post
SebRmv
post 29 Jun 2009, 08:07
Post #7


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



QUOTE (Starcat @ 26 Jun 2009, 22:11) *
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?




--------------------
Go to the top of the page
 
+Quote Post
Starcat
post 29 Jun 2009, 13:45
Post #8


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



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
Go to the top of the page
 
+Quote Post
SebRmv
post 29 Jun 2009, 14:35
Post #9


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



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


--------------------
Go to the top of the page
 
+Quote Post
SebRmv
post 1 Jul 2009, 09:38
Post #10


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



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)




--------------------
Go to the top of the page
 
+Quote Post
Orion_
post 1 Jul 2009, 12:53
Post #11


Rick dangerous
***

Group: Level1
Posts: 1.048
Joined: 2-1 06
Member No.: 29



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
Go to the top of the page
 
+Quote Post
Starcat
post 1 Jul 2009, 16:00
Post #12


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



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
Go to the top of the page
 
+Quote Post
SebRmv
post 2 Jul 2009, 08:18
Post #13


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



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.




--------------------
Go to the top of the page
 
+Quote Post
Starcat
post 2 Jul 2009, 09:04
Post #14


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



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
Go to the top of the page
 
+Quote Post
SebRmv
post 2 Jul 2009, 18:40
Post #15


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



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.


--------------------
Go to the top of the page
 
+Quote Post
SebRmv
post 3 Jul 2009, 09:55
Post #16


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



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 File(s)
Attached File  cden16.zip ( 20.67K ) Number of downloads: 61
 


--------------------
Go to the top of the page
 
+Quote Post
Starcat
post 4 Jul 2009, 13:33
Post #17


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



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
Go to the top of the page
 
+Quote Post
Starcat
post 4 Jul 2009, 14:01
Post #18


Great giana sister
*

Group: Members
Posts: 89
Joined: 2-8 05
From: Germany
Member No.: 18



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
Go to the top of the page
 
+Quote Post
SebRmv
post 4 Jul 2009, 16:02
Post #19


Rick dangerous
***

Group: Level1
Posts: 1.557
Joined: 23-1 06
From: Paris, France
Member No.: 31



QUOTE (Starcat @ 4 Jul 2009, 15:01) *
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.



--------------------
Go to the top of the page
 
+Quote Post
Orion_
post 4 Jul 2009, 16:25
Post #20


Rick dangerous
***

Group: Level1
Posts: 1.048
Joined: 2-1 06
Member No.: 29



QUOTE (Starcat @ 4 Jul 2009, 14:33) *
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
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 21-10-2014 / 01:31