[From derek@spider.com Tue, 20 Jul 1999 22:37:54 +0100
Date: Tue, 20 Jul 1999 22:37:54 +0100
From: Derek Fawcus derek@spider.com
Subject: [Livid-dev] Re: dvd-stuff.tar.gz

On Tue, Jul 20, 1999 at 11:12:43PM +0200, Stefan Alfredsson wrote:
> Hi, saw your message on livid (000023.html) with the dvd-stuff.tar.gz
> attached, and thought you might want my experiences with it :)
> 
> I've got a dvd player, AOpen 9632 so i decided to try it out
> (got my first title today in order to test stuff), got Veliaths
> dvd ioctl patch, installed, tried your program but it seems
> it cannot read the disc key?
> The title is "Mimic", region 2, and here is the output I get;
> 
> 
> [ard@muu]:/.1/home/ard/dvd/css> ./dvd
> Open success
> Received agid 0
> Sending Challenge: 00 01 02 03 04 05 06 07 08 09
> Received Key1: FD 14 D4 74 2A
> Drive Authentic - round 31
> Received Challenge: 30 1A 76 95 22 98 73 58 72 8A
> Sending Key2: 55 FB FD 8B 5A
> Host is Authentic
> Received Session Key: E7 AD D8 5A 29
> Could not read Disc Key
> 
> [ard@muu]:/.1/home/ard/dvd/css> gcc tstdvd.c docrypt.s shuffle.c -o
> tstdvd
> [ard@muu]:/.1/home/ard/dvd/css> ./tstdvd /dev/cdrom
> not Authenticated
> Request AGID [1]... AGID 0
> Host sending challenge: 09 08 07 06 05 04 03 02 01 00
> LU sent key1: FD 14 D4 74 2A
> Drive Authentic - round 31
> LU sent challenge: BE 6A 28 61 1D 68 33 04 B5 CC
> Host sending key 2: C9 86 A6 A5 81
> DVD is authenticated
> Received Session Key: 36 69 42 EF 5E
> not Authenticated
> Could not read Disc Key
> not Authenticated
> Segmentation fault (core dumped)

This is what I get with one of the DVD disk's I've got (Trainspotting),
except it doesn't dump core. If you look at that the kernel ide-cd
driver prints (goes to syslog/screen), it'll tell you why it failed
to read the key. In my case it claims there is no key.

The other disk has a key and lets me read it.

> [ard@muu]:/.1/home/ard/dvd/css>
> [ard@muu]:/.1/home/ard/dvd/css> gcc -o dvdinfo dvdinfo.c
> [ard@muu]:/.1/home/ard/dvd/css> ./dvdinfo
> not Authenticated
> Layer 0[1]
> Book Version: 1
> Book Type: 0
> Min Rate: 2
> Disk Size: 0
> Layer Type: 1
> Track Path: 0
> Num Layers: 0
> Track Density: 0
> Linear Density: 0
> BCA: 0
> Start Sector 0x30000
> End Sector 0x23bacf
> End Sector L0 0
> Copyright: CPST=0, RMI=0xfd
> [ard@muu]:/.1/home/ard/dvd/css>

I also get something similar to the above, specifically: CPST=0, RMI=C0;
now RMI is the region, 0xfd = region 2 only, 0xc0 = regions 1-6.
I'm guessing that CPST=0 means that there is no disk key, since the other
DVD I've got has CPST=1 and lets me read the disk key.

Can anyone confirm this?

> I thought the disc might not be encrypted, so I tested
> [ard@muu]:/.1/home/ard> file /cdrom/VIDEO_TS/VTS_01_1.VOB
> /cdrom/VIDEO_TS/VTS_01_1.VOB: MPEG system stream data
> [ard@muu]:/.1/home/ard> mount |grep cdrom
> /dev/hdc on /cdrom type udf (ro)
> [ard@muu]:/.1/home/ard> cat /cdrom/VIDEO_TS/VTS_01_1.VOB > /dev/null
> 
> (ie. no errors)... I will try to play it later tonight with an mpeg2
> player to find out if they are encrypted.

Good plan. I don't have X going on my test machine yet, and so haven't
been able to try that myself.

DF
-- 
Derek Fawcus derek@spider.com
Spider Software Ltd. +44 (0) 131 475 7034

From axboe@image.dk Wed, 21 Jul 1999 00:00:05 +0200
Date: Wed, 21 Jul 1999 00:00:05 +0200
From: Jens Axboe axboe@image.dk
Subject: [Livid-dev] Re: dvd-stuff.tar.gz

On Tue, Jul 20 1999, Derek Fawcus wrote:
> This is what I get with one of the DVD disk's I've got (Trainspotting),
> except it doesn't dump core. If you look at that the kernel ide-cd
> driver prints (goes to syslog/screen), it'll tell you why it failed
> to read the key. In my case it claims there is no key.

I only have two DVD discs right now, will try some more when I get
my hands on them. Sense 5, asc 6f, ascq 1?

> I also get something similar to the above, specifically: CPST=0, RMI=C0;
> now RMI is the region, 0xfd = region 2 only, 0xc0 = regions 1-6.
> I'm guessing that CPST=0 means that there is no disk key, since the other
> DVD I've got has CPST=1 and lets me read the disk key.
> 
> Can anyone confirm this?

CPST is the Copyright Protection System Type. 1 means that there are
actually copyright information present on the media. The disc I have
that wont allow me to read the key, also reports a CPST of 0. So
it seems they follow the spec.

> > I thought the disc might not be encrypted, so I tested
> > [ard@muu]:/.1/home/ard> file /cdrom/VIDEO_TS/VTS_01_1.VOB
> > /cdrom/VIDEO_TS/VTS_01_1.VOB: MPEG system stream data
> > [ard@muu]:/.1/home/ard> mount |grep cdrom
> > /dev/hdc on /cdrom type udf (ro)
> > [ard@muu]:/.1/home/ard> cat /cdrom/VIDEO_TS/VTS_01_1.VOB > /dev/null
> > 
> > (ie. no errors)... I will try to play it later tonight with an mpeg2
> > player to find out if they are encrypted.
> 
> Good plan. I don't have X going on my test machine yet, and so haven't
> been able to try that myself.

Can someone point me to a mpeg2 player?

-- 
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer