Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libdvdcss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libdvdcss
Commits
e206559a
Commit
e206559a
authored
Nov 17, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some commented-out cruft and pointless debug output.
parent
41dc1176
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
src/css.c
src/css.c
+3
-11
test/dvd_region.c
test/dvd_region.c
+0
-2
No files found.
src/css.c
View file @
e206559a
...
...
@@ -72,7 +72,7 @@ static void DecryptKey ( uint8_t,
const
uint8_t
*
,
const
uint8_t
*
,
uint8_t
*
);
static
int
DecryptDiscKey
(
dvdcss_t
,
const
uint8_t
*
,
dvd_key
);
static
int
CrackDiscKey
(
dvdcss_t
,
uint8_t
*
);
static
int
CrackDiscKey
(
uint8_t
*
);
static
void
DecryptTitleKey
(
dvd_key
,
dvd_key
);
static
int
RecoverTitleKey
(
int
,
const
uint8_t
*
,
...
...
@@ -403,7 +403,7 @@ int dvdcss_disckey( dvdcss_t dvdcss )
/* Crack Disc key to be able to use it */
memcpy
(
p_disc_key
,
p_buffer
,
DVD_KEY_SIZE
);
PrintKey
(
dvdcss
,
"cracking disc key "
,
p_disc_key
);
if
(
!
CrackDiscKey
(
dvdcss
,
p_disc_key
)
)
if
(
!
CrackDiscKey
(
p_disc_key
)
)
{
PrintKey
(
dvdcss
,
"cracked disc key is "
,
p_disc_key
);
break
;
...
...
@@ -1164,7 +1164,7 @@ static int investigate( unsigned char *hash, unsigned char *ckey )
return
memcmp
(
key
,
ckey
,
DVD_KEY_SIZE
);
}
static
int
CrackDiscKey
(
dvdcss_t
dvdcss
,
uint8_t
*
p_disc_key
)
static
int
CrackDiscKey
(
uint8_t
*
p_disc_key
)
{
unsigned
char
B
[
5
]
=
{
0
,
0
,
0
,
0
,
0
};
/* Second Stage of mangle cipher */
unsigned
char
C
[
5
]
=
{
0
,
0
,
0
,
0
,
0
};
/* Output Stage of mangle cipher
...
...
@@ -1206,12 +1206,6 @@ static int CrackDiscKey( dvdcss_t dvdcss, uint8_t *p_disc_key )
tmp3
=
j
^
tmp2
^
i
;
/* C[1] */
tmp4
=
K1table
[
K1TABLEWIDTH
*
(
256
*
j
+
tmp3
)
];
/* count of entries here */
tmp4
++
;
/*
if( tmp4 == K1TABLEWIDTH )
{
print_debug( dvdcss, "Table disaster %d", tmp4 );
}
*/
if
(
tmp4
<
K1TABLEWIDTH
)
{
K1table
[
K1TABLEWIDTH
*
(
256
*
j
+
tmp3
)
+
tmp4
]
=
i
;
...
...
@@ -1230,8 +1224,6 @@ static int CrackDiscKey( dvdcss_t dvdcss, uint8_t *p_disc_key )
tmp3
=
0
;
print_debug
(
dvdcss
,
"initializing the big table"
);
for
(
i
=
0
;
i
<
BIGTABLESIZE
;
i
++
)
{
tmp
=
((
i
+
i
)
&
0x1fffff0
)
|
0x8
|
(
i
&
0x7
);
...
...
test/dvd_region.c
View file @
e206559a
...
...
@@ -198,8 +198,6 @@ static int print_region(int fd)
break
;
}
// printf("%d vendor resets available\n", ai->lrpcs.vra);
// printf("%d user controlled changes available\n", ai->lrpcs.ucca);
printf
(
"Region: "
);
if
(
region_mask
)
while
(
region_mask
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment