1 /*****************************************************************************
2 * css.h: Structures for DVD authentification and unscrambling
3 *****************************************************************************
4 * Copyright (C) 1999-2001 VideoLAN
5 * $Id: css.h,v 1.7 2002/01/14 22:06:57 stef Exp $
7 * Author: Stéphane Borel <stef@via.ecp.fr>
10 * - css-auth by Derek Fawcus <derek@spider.com>
11 * - DVD CSS ioctls example program by Andrew T. Veliath <andrewtv@usa.net>
12 * - DeCSSPlus by Ethan Hawke
13 * - The Divide and conquer attack by Frank A. Stevenson <frank@funcom.com>
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
28 *****************************************************************************/
31 typedef u8 dvd_key_t[KEY_SIZE];
35 u8 p_challenge[2*KEY_SIZE];
38 dvd_key_t p_key_check;
43 typedef struct dvd_title_s
47 struct dvd_title_s *p_next;
54 dvd_key_t p_unenc_key; /* title key before decryption */
55 dvd_key_t p_title_key; /* title key after decryption */
58 /*****************************************************************************
60 *****************************************************************************/
63 int CSSTest ( dvdcss_handle );
64 int CSSAuth ( dvdcss_handle );
65 int CSSGetDiscKey ( dvdcss_handle );
66 int CSSGetTitleKey ( dvdcss_handle, int );
67 int CSSDescrambleSector ( u8 * , u8 * );