ie8 fix
madison

Hardware 2.0

Adrian Kingsley-Hughes

HDCP master key spawns open source encryption/decryption code

By | September 29, 2010, 8:38am PDT

Summary: Remember that HDCP master key that was leaked a few weeks back? Remember how Intel tried to downplay the leak at the time claiming that they key was useless unless incorporated into hardware? Well, it seems that it might not be that useless after all.

Remember that HDCP master key that was leaked a few weeks back? Remember how Intel tried to downplay the leak at the time claiming that they key was useless unless incorporated into hardware? Well, it seems that it might not be that useless after all.

Researchers Rob Johnson and Mikhail Rubnich of Stony Brook University, New York, have released an open source (BSD licensed) implementation of the HDCP encryption/decryption algorithm.

The HDCP cipher is designed to be efficient when implemented in hardware, but it is terribly inefficient in software, primarily because it makes extensive use of bit operations. Our implementation uses bit-slicing to achieve high speeds by exploiting bit-level parallelism. We have created a few high-level routines to make it as easy as possible to implement HDCP, as shown in the following example.

The code isn’t yet fast enough to be able to decrypt 1080p content in real-time on a single core, but decryption can be parallelized across multiple cores. To achieve a decrypt rate of 30 frames per second for 1080p the code needs a high-end 64-bit CPU and some 1.6GB of RAM. The researchers see the possibility for further optimization, such as by using SSE instructions.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Adrian Kingsley-Hughes is an internationally published technology author who has devoted over a decade to helping users get the most from technology.

Disclosure

Adrian Kingsley-Hughes

All opinions expressed on Hardware 2.0 are those of Adrian Kingsley-Hughes. Every effort is made to ensure that the information posted is accurate. If you have any comments, queries or corrections, please contact Adrian via the email link here. Any possible conflicts of interest will be posted below. [Updated: February 23, 2010] - Adrian Kingsley-Hughes has no business relationships, affiliations, investments, or other actual/potential conflicts of interest relating to the content posted so far on this blog.

Biography

Adrian Kingsley-Hughes

Adrian Kingsley-Hughes is an internationally published technology author who has devoted over a decade to helping users get the most from technology -- whether that be by learning to program, building a PC from a pile of parts, or helping them get the most from their new MP3 player or digital camera.

Adrian has authored/co-authored technical books on a variety of topics, ranging from programming to building and maintaining PCs. His most recent books include "Build the Ultimate Custom PC", "Beginning Programming" and "The PC Doctor's Fix It Yourself Guide". He has also written training manuals that have been used by a number of Fortune 500 companies.

Adrian also runs a popular blog under the name The PC Doctor, where he covers a range of computer-related topics -- from security to repairing and upgrading.

12
Comments

Join the conversation!

Just In

Whoa!
njohnson@... 26th Jan
Before everyone gets too excited we'd all better read The Digital Millenium Copyright ACT which makes it illegal to decrypt encrypted copyrighted material "even for your own use" NOT just for pirates who plan to sell it and deprive the creators of their rightful income.

Don't get me wrong, I disagree, and feel consumers "should" have the right to do whatever they like as long as it does not deprive content creator's of their rightful income but that is NOT how that law is written.
0 Votes
+ -
great!
Linux Geek 29th Sep 2010
You might not need real time decryption at all if you just want to record a show rather than seeing it.
@Linux Geek

I smell MythTV plugin...
0 Votes
+ -
MythTV on Windows, presumably
Zogg 29th Sep 2010
@WarhavenSC

I can't see a use for this on Linux, unless Linux video drivers actually turn HDCP on in the first place. The Open Source ones certainly don't, and don't need to either.
0 Votes
+ -
"high-end 64-bit CPU and some 1.6GB of RAM"
Economister Updated - 29th Sep 2010
You can barely buy a computer with only 2GB of RAM these days. In a couple of years, low end HW would barely notice the additional load of this decryption. Nice going Intel. Your ever powerful processors will come back and bite you in the a$$. How deliciously ironic.
0 Votes
+ -
LOL!
thx-1138_@... Updated - 30th Sep 2010
@Economister .. i was thinking exact same thing .. got a flatmate who recently purchased a new ACER. According to him the machine was "mid range" from those available at the retail outlet.

Here's the basic spec's: 3GB of RAM, fully integrated ATI Graphics @512MB of dedicated video RAM, 3.2GHz Intel Dual Core .. so really, i did almost laugh when reading ""high-end 64-bit CPU and some 1.6GB of RAM" as well .. it is kinda hilarious, as statements go, in this day and age.

Incidentally, my basement dwelling Athlon 3000+ (Newcastle) @2.4GHz, by todays standards, is a museum piece. sad

... as for the leaked HDCP key being successfully incorporated into a working implementation with existing, DRM protected, HD content: it's become a matter of "when" and not "if" anymore. Taking into accounts this latest news flash .. i'd say pretty d@mn soon.
0 Votes
+ -
Got you beat
Economister 30th Sep 2010
@thx-1138_@...

Athlon 64 3000+ (Winchester) w. 2 GB RAM. Does everything I need it to do, but if I need to generate some of those HDCP keys I may have to upgrade. wink
0 Votes
+ -
You got me ..
thx-1138_@... Updated - 30th Sep 2010
@Economister .. wink
0 Votes
+ -
Makes for an off the shelf purchase, available to anyone with a few bucks. No, nothing exploitable here.
0 Votes
+ -
It'll be in cheap chips soon enough
zackers Updated - 29th Sep 2010
I wouldn't worry about buying a fast computer to use this algorithm. It's thought that the large memory requirements are because the code uses a huge lookup table to get around needing fast bit operations.

However, somebody will put this into a programmable logic part or even design a special chip to do it for a few bucks. It won't need all the memory or processing power because special-purpose bit operations can be designed in. Remember adding a HDCP compliant HDMI port must cost only a few bucks at most, even the lowest cost DVD players have one. The net result is that somebody will produce a dongle to decode a HDCP stream for worst case $100 to $200 retail (besides making a profit, you have to have a case, the physical HDMI connector(s), might have to add power, etc.).
0 Votes
+ -
This sounds like a job for...
keebaud@... 30th Sep 2010
... the GPU. Heavy decryption number crunching seems to be heading for the GPU in most other applications, so surely it's the logical direction for this to go in.
0 Votes
+ -
Why the CPU and not the GPU?
NZJester 2nd Oct 2010
Why are they using the CPU's to do this? Could you not use the power of a GPU to do this job more effectively?
0 Votes
+ -
Whoa!
njohnson@... 26th Jan
Before everyone gets too excited we'd all better read The Digital Millenium Copyright ACT which makes it illegal to decrypt encrypted copyrighted material "even for your own use" NOT just for pirates who plan to sell it and deprive the creators of their rightful income.

Don't get me wrong, I disagree, and feel consumers "should" have the right to do whatever they like as long as it does not deprive content creator's of their rightful income but that is NOT how that law is written.

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix