Protected Streaming

Protected Streaming[1] is a DRM technology by Adobe. The aim of the technology is to protect digital content (video or audio) from unauthorized use. Protected Streaming consists of many different techniques; basically there are two main components: encryption and SWF verification.

This technique is used by the Hulu desktop player and the RTÉ Player. Fifa.com also uses this technique to serve the videos on the official site. Some videos on YouTube also use RTMPE, including those uploaded there by BBC Worldwide.

## Contents

* 1 Encryption
* 2 SWF verification
* 3 Notes
* 4 References

## Encryption

Streamed content is encrypted by the Flash Media Server "on the fly", so that the source file itself does not need to be encrypted (a significant difference from Microsoft's DRM). For transmission ("streaming"), a special protocol is required, either RTMPE or RTMPS.[citation needed]

RTMPS uses SSL-encryption. In contrast, RTMPE is designed to be simpler than RTMPS, by removing the need to acquire a SSL Certificate. RTMPE makes use of well-known industry standard cryptographic primitives, consisting of Diffie–Hellman key exchange and HMACSHA256, generating a pair of RC4 keys, one of which is then used to encrypt the media data sent by the server (the audio or video stream), while the other key is used to encrypt any data sent to the server. RTMPE caused less CPU-load than RTMPS on the Flash Media Server.[citation needed]

Adobe fixed the security issue in January 2009, but did not fix the security holes in the design of the RTMPE algorithm itself.[2] Analysis of the algorithm shows that it relies on security through obscurity. For example, this renders RTMPE vulnerable to Man in the Middle attacks.[citation needed]

Tools which have a copy of the well-known constants extracted from the Adobe Flash Player are able to capture RTMPE streams, a form of the trusted client problem. Adobe issued DMCA takedowns on RTMPE recording tools, including rtmpdump, to try to limit their distribution. In the case of rtmpdump, however, this led to a Streisand effect.[3]

## SWF verification

The Adobe Flash Player uses a well-known constant, appended to information derived from the SWF file (a hash of the file and its size), as input to HMACSHA256. The HMACSHA256 key is the last 32 bytes of the server's first handshake packet. The Flash Media Server uses this to limit access to those clients which have access to the SWF file (or have been given a copy of the hash and the size of the SWF file).

All officially allowed clients (which are in fact *.swf files) need to be placed on the Flash Media Server streaming the file. Any other client requesting a connection will receive a "connection reject".

The combination of both techniques is intended to ensure streams cannot be sniffed and stored into a local file, as SWF verification is intended to prevent third party clients from accessing the content. However, it does not achieve this goal. Third party clients are free to write the decrypted content to a local file simply by knowing the hash of the SWF file and its size. In practice, therefore, Adobe's own implementation of the Macromedia Flash Player is the only client which does not allow saving to a local file.

The only possible way to restrict connections to a Flash Media Server is to use a list of known hosts, to avoid the whole player (the Flash client) being placed on an unauthorised website. Even this has no real benefit for mass-distributed files, as any one of the known hosts could take a copy of the data and re-distribute it at will. Thus "known host" security is only useful when the known hosts can be trusted not to re-distribute the data.

## Notes

1. ↑ "Using the Adobe Access Server for Protected Streaming"
2. ↑ "RTMPE Specification and Analysis". 2009-05-25. http://lkcl.net/rtmp/RTMPE.txt.
3. ↑ "Adobe has issued a DMCA removal request for rtmpdump". 2009-05-21. http://linuxcentre.net/adobe-has-issued-a-dmca-removal-request-for-rtmpdump/.

## References

* Whitepaper by Adobe
* RTMPE (Adobe LiveDocs)
* RTMPS (Adobe LiveDocs)
* rtmpdump 2.1+ (Source code and binaries)
* Source code of rtmpdump v1.6 by Andrej Stepanchuk
* RTMPE specification, generated from the rtmpdump source code
* RTMFP encryption mechanism (DRAFT), reverse engineered from scratch

* v
* t
* e

Adobe Flash

File
formats|

* ActionScript (AS)
* Action Message Format (AMF)
* Flash Video (FLV)
* Flash XML Graphics (FXG)
* Local shared objects (LSOs)
* MXML
* Flash Movie (SWF)
* Flash Code Library (SWC)

Software
(list)|

| Players|

* Adobe AIR
* Adobe Flash Player
* Gnash
* Lightspark
* Gameswf
* Tamarin

|

Animation
tools|

* Adobe Animate
* Toon Boom
* Moho
* Vyond
* Stencyl

Programming
tools|

* FlashDevelop
* Powerflasher FDT
* Apache Flex
* Haxe (OpenFL)
* CrossBridge
* Adobe Scout
* FlashFirebug

Libraries|

* Starling Framework
* Away3D
* Flare3D
* Stage3D
* PureMVC
* Ming
* List of Flex frameworks

Converters|

* Adobe Flash Media Live Encoder
* SWFTools
* swfmill
* Google Swiffy
* Adobe Wallaby

Server-side|

* Adobe Flash Media Server

Obsolete
software|

* Adobe Flash Builder
* Adobe Flash Catalyst
* Adobe Flash Lite
* SWFAddress
* SWFObject
* MTASC
* Scaleform GFx
* SWiSH Max
* Swift 3D
* Papervision3D
* Ajax Animator
* Shumway
* Swfdec
* OpenLaszlo

Related
topics|

* Comparison of HTML5 and Flash
* Thoughts on Flash
* Flash animation
* films
* television
* Protected Streaming
* Real-Time Messaging Protocol
* Real-Time Media Flow Protocol

Developers|

* FutureWave Software
* Macromedia
* Adobe Inc.

* Category

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Protected Streaming. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Protected_Streaming&oldid=207259"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template