]> FriiDump Source - friidump.git/blob - libfriidump/ecma-267.h
PFES-REPO-008: Import FriiDump 0.5.3.5 Project Frankenstein baseline
[friidump.git] / libfriidump / ecma-267.h
1 /*
2 unscrambler 0.4: unscramble not standard IVs scrambled DVDs thru 
3 bruteforce, intended for Gamecube/WII Optical Disks.
4
5 Copyright (C) 2006  Victor Muñoz (xt5@ingenieria-inversa.cl)
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 */
21
22 typedef unsigned int u32;
23 typedef int s32;
24
25 typedef unsigned short u16;
26 typedef short s16;
27
28 typedef unsigned char u8;
29 typedef char s8;
30
31 /* EDC stuff */
32
33 u32 edc_calc(u32 edc, u8 *ptr, u32  len);
34  
35 /* end of EDC stuff */
36
37 /* LFSR stuff */
38
39 void LFSR_ecma_init(int iv);
40
41 void LFSR_init(u16 seed);
42
43 int LFSR_tick();
44
45 u8 LFSR_byte();
46
47 /* end of LFSR stuff */