Feeds

Tiny C code bests seven-line DVD decoder

Smaller, way faster

  • alert
  • submit to reddit

Internet Security Threat Report 2014

Coder Charles M Hannum has created the smallest program capable of decoding a Content Scrambling System (CSS) DVD file, beating last week's seven-line Perl shell script 442 bytes to 472 (excluding newline bytes).

Hannum's C program, called efdtt, is no slouch, either. The programmer claims it can "descramble in excess of 21.5MBps" - faster than the DVD spec. allows for. The speed comes "without even particularly trying to optimise the I/O. This makes it pretty insignificant compared to the rest of the decoding process" = in other words, it's quick enough not to impede the MPEG 2 decode operation which turns the data into a moving image.

Apparently, the latter may be a problem with qrpff, the Perl CSS descrambler written by Keith Winstein and Marc Horowitz, and posted on Carnegie Mellon University professor David Touretzky's DSS Descrambler Gallery Web site. Winstein and Horowitz' code was capable of supporting realtime decode and playback, but we're told the output was occasionally jerky.

Hannum's code should allow smooth playback.

Both scripts do what the controversial DVD-on-Linux utility DeCSS does - and demonstrate how simple CSS, the DVD standard's copyright protection mechanism, is to decode. The Motion Picture Association of America has been pretty successful in repressing the distribution of DeCSS, viewing it as a threat to movie industry copyright - and movie industry profits.

"So what's the MPAA gonna do now?" Touretzky asks. "This code is small enough to put on a cocktail napkin. Commit to memory. Knit into a scarf. Whatever. It cannot be suppressed." ®

Related Link

Dave Touretzky's Gallery of CSS Descramblers
Charles M Hannum's efdtt.c

Related Story

Seven-line program beats DVD crypto

Top 5 reasons to deploy VMware with Tegile

More from The Register

next story
Netscape Navigator - the browser that started it all - turns 20
It was 20 years ago today, Marc Andreeesen taught the band to play
Sway: Microsoft's new Office app doesn't have an Undo function
Content aggregation, meet the workplace ... oh
Sign off my IT project or I’ll PHONE your MUM
Honestly, it’s a piece of piss
Return of the Jedi – Apache reclaims web server crown
.london, .hamburg and .公司 - that's .com in Chinese - storm the web server charts
NetWare sales revive in China thanks to that man Snowden
If it ain't Microsoft, it's in fashion behind the Great Firewall
Chrome 38's new HTML tag support makes fatties FIT and SKINNIER
First browser to protect networks' bandwith using official spec
Admins! Never mind POODLE, there're NEW OpenSSL bugs to splat
Four new patches for open-source crypto libraries
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Why cloud backup?
Combining the latest advancements in disk-based backup with secure, integrated, cloud technologies offer organizations fast and assured recovery of their critical enterprise data.
Win a year’s supply of chocolate
There is no techie angle to this competition so we're not going to pretend there is, but everyone loves chocolate so who cares.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Intelligent flash storage arrays
Tegile Intelligent Storage Arrays with IntelliFlash helps IT boost storage utilization and effciency while delivering unmatched storage savings and performance.