HDCP Encryption/Decryption Code Released
rtj writes "We have released an open-source (BSD licensed) implementation of the HDCP encryption/decryption algorithms. The code includes the block cipher, stream cipher, and hashing algorithms necessary to perform an HDCP handshake and to encrypt or decrypt video. The code passes the test vectors provided in the HDCP specification and can encrypt video at a rate of about 180 640x480 frames/second on a 2.33GHz Intel Xeon CPU. This isn't quite fast enough to decrypt 1080p content in real-time on a single core, but decryption can be parallelized across multiple cores. There are also many opportunities for further optimisation, such as using SSE instructions. We are releasing the code in hopes that others will further optimize it and use it in their HDCP-related projects."
Get it on a shirt, on Digg, and in sigs everywhere!
Living With a Nerd
Only about a week or so since the master tables were released.
Donte Alistair Anderson Roberts - hi son!
Karma: Chameleon
So does this negate Intel's statement that you can only do this if you build a chip with the code in it?
Great stuff! Shows Intel's representative's earlier comments about software implementation not being feasible quite wrong.
U+F8FF
3...2....1....
I guess the next logical step would be a GPU implementation....
Those rates are for a single core. They say that decrypting 1080p is ~7x slower than 640x480, which correspond well to 1080p having 6.75x more pixels.
However, there's no reason for this to be restricted to run on a single core or a single machine. If somebody were to use this for distributing a real time stream (e.g, a sports broadcast) there's no particular reason to not just have each recipient of the stream do their share of the decryption.
Running the number, getting 60 frames of 1080p from the Core 2 requires 5.33 cores, which would correspond to three dual-core machines. This means you can't, with today's machines, just share it with your friend if you both have dual core Core2 machines - but with two friends it should work, assuming enough bandwidth available from each of the friends: 3Gbit/s for the full unencrypted stream, plus 1Gbit/s down for the stream to be decrypted, plus 1Gbit/s up for the part of the stream decrypted on that machine.
You'll also get real time decryption on a single Gulftown CPU: E.g, a Core i7-980X runs 3200MHz and has 6 cores.
Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
If any...
I can see how this might be very useful for someone with an older HDTV that predates HDCP. Personally though I'd prefer a small box over a big case with a multi-core CPU. I imagine the scheme was designed with efficient hardware implementations in mind.
There are already bootleg hardware HDCP strippers on the market. It used to be possible to shut down these devices by revoking their keys, but that's now gone out the window with the master-key leak. Expect the next generation of devices to let you upload new keys to them, or maybe generate new keys themselves.
Software decryption is kinda interesting but you're right, hardware is where it's at.
Probably none, this game is just getting started. There are already HDCP strippers out there, anyway, intended for just that purpose (or HD projectors with DVI but not HDCP support) but they're super expensive (likely due to supply and demand)
It's easier for Intel et al to go after people who are selling a product, especially a physical device. Much easier for a software author to be safely anonymous so the DMCA can't touch 'em.
Hail Eris, full of mischief...
E pluribus sanguinem
Nice, a Braille reader for BluRay subtitles should now be technically possible. BluRays make decent eBooks with the right software.
(HDMI neglects to ship closed-captioning data so you *have* to capture/diff/ocr from HDMI rasters to extract the text).
My God, it's Full of Source!
OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
When you watch a DVD or Bluray, the content is decrypted, then encrypted and decrypted again for HDCP.
A significant amount of energy is devoted to protecting the pre-internet business model.
This will only get worse over time, as media gets larger and media companies more aggressively cling to the old business model.
It took more than 100 years for the world to really adjust to the printing press. I assume at least the same time period for the Internet, before we can have our enlightenment period.
If you can't recompress it in real time then there's not much point in decrypting it in real time either. Just dump it to disk and process it later.
No sig today...
As others have said, somebody will almost certainly port the code over to CUDA or in some other fashion use the GPU to do the work. Hardware solutions probably aren't going to be around too much longer, although, as full dubbing facilities, they may have some utility.
DRM must be really really costly. And the bad thing is we're all paying for it - the honest customers even more than the "pirates" against which it is supposed to protect.
When I see how much computing resources it takes just to en/decrypt a stream - OK it's a general purpose processor, not something dedicated - I am thinking of the cost of those resources in all the devices we have. After all your BluRay player has to read the BR disk, decrypt the content, then encrypt it again to an HDCP stream, which is sent over to say a TV, which then decrypts it again to make it a watchable image.
Now if only we wouldn't need that encryption.
BluRay itself is (all but) cracked, that's one decryption step that can be done away with.
HDCP transfer is now done with; that's another two steps of en- and decryption that can go.
That is at least three pieces of beefy hardware. That's three chips that won't come for a few pennies each. That's three chips that will be wasting significant amounts of energy.
Plus of course the huge upfront cost to develop all that: to develop the algorithms, set up the secure key supply, designing the dedicated de/encrypt chips and writing all the software around it to make it work.
And all of us are paying for it. It makes BR players and disks and HDCP compliant hardware more expensive than necessary, it even increases our power bills unnecessary. I really wonder when this madness can come to an end.
I'd love to see a device that generates a new key every time it boots up. The ultimate unblockable device, no matter how many keys get revoked.
FC Closer
The same thing is happening for HDCP. How long before someone codes this as FPGA logic? Then anyone will be able to pump out HDCP scrubbers for a few bucks, no need to license an decryption key.
China. Where's my pass-through video card I can put in my MCPC to overlay text and graphics on my TV? I want to feed my TIVO into my MCPC so I can control my own PIP and overlays. I couldn't care less about pirating the stuff myself. If I want a local copy of something, it's already out in the wild - I'll get it that way. I just want to be able to control my media and view what I want how I want.
--- Keep the choice with the user..
I see what you did there...and I approve ! ;)
I just worry this is like invoking Godwin's law and could backfire on us somehow...
--bornagainpenguin
Have a Virgin Mobile USA smartphone? Give VMRoms.com a try!
We just hate the RIAA and the MPAA in our guts.
They pump out shit day after day, for some it's just a game of one upping the other. They couldn't care less for the content that is protected. if there is encryption they view it as a challenge.
I myself don't give a dime about all of this. The things they are trying to encrypt, I don't want.
"never pays for anything"
I pay for physical goods that aren't in infinite supply.
"and complaining when companies try and protect their revenue."
Sorry, but when it hurts legitimate customers in the process, it's not worth it. DRM, HDCP... it's all the same annoyance. Eventually (often extremely quickly) it will be bypassed by the pirates and it will only hurt the legitimate customers (some will either be angry and stop buying future media, and others may even turn to piracy because still want the media). In the end, their 'protection' only hurts themselves and actual customers, not pirates. So, yes, people are going to complain.
Filthy, filthy copyrapists!
Could this decrypting take place on the GPU making it usable on more modest hardware?
Problem with this: Your other devices will eventually get restrictions on them that only allow a certain number of new devices to be connected to them before they fry. Every new key counts as a new device.
Cinavia is audio watermarking. Considering that they aren't quite as braindead as the SDMI developers so that they haven't posted a public oracle for their watermark, I would guess that Cinavia has a chance of surviving for quite a bit longer. But I wouldn't bet on it surviving a very long time if it becomes a nuisance.
There are few details about this watermark on the net, currently, and the information which there is gives one the impression that it is currently designed to prevent movies which have been taped in a movie theater from being played at home. I don't find anywhere that it would prevent copying/backup of media designed for home use.
Frankly, I'd be totally OK with that. That's not the kind of abusive DRM which inconveniences the paying consumer. It's also a use case which is a lot easier for protecting a watermark, because one only gets one instance of the watermark for every film which is released. My bet is that it will be cracked by someone analyzing the detection algorithm rather than by comparison of watermarked/non-watermarked audio streams. That is, assuming that someone doesn't just come up with some kind of processing paradigm which manages to remove the watermark without even figuring out how it works exactly.
It is possible to install unsigned drivers to Windows 7with the right settings, windows will complain very violently (with a RED dialogue box- which of course makes all the difference security wise!) however whether or not the drm in the kernel will stop these drivers from playing ball with hdcp is another matter, although that's not to say there aren't relatively easy ways around that issue too.
I purchase my music from amazon.com/mp3 (their 32 bit deb package will run on 10.04 x64 with some work). I buy my directly on my nook. I buy DVD movies. So, while I can't speak for everyone else here, I answered your question. No, not EVERY slashdotter pirates all their content. By the way you got modded though, it sure seems like a lot do.