Log in

View Full Version : vob-id || cell-id kcheck


doomDVD
20th July 2003, 18:17
Hi all,

i am trying to implement a key check using the standard decss algo, on every vob-id, and every cell-id. can someone please give me some ideas on how to implement this.

thanx in advance
doomDVD.

LIGHTNING UK!
21st July 2003, 07:47
Well whilst ripping the vob, check the nav packets to see which vobid/cellid you're currently on and if it changes, get your css code cracking at that point in the file.

I know this stuff is a challenge and therefore fun, but arent you re-inventing the wheel?!

doomDVD
23rd July 2003, 21:33
thanx for the reply but im still a little unclear, do i start decrypting from the possition the vob-id changed or from the current VOB block i am on.

LIGHTNING UK!
24th July 2003, 07:21
The sector you're on will be a nav packet. Just get your decryption engine cracking everything from that point.

so basically.... (and I do mean basically!)


while(more_to_read)
{
ReadSector(LBA, Buffer);
if(nav_packet)
{
vob_id = Buffer[some_offset];
cell_id = Buffer[some_offset];
if(vob_id != current_vob_id || cell_id != current_cell_id)
{
// Oooohhh we found a new cell id / vob id....lets check for a key change!
ReturnValue = GetDecryptionKey(LBA, DecryptionKey);
current_vob_id = vob_id;
current_cell_id = cell_id;
}
}
else
{
do some other stuff...
}
if(LBA++ > EndLBA)
{
more_to_read = false;
}
}