WrmHeader

class WrmHeader

A WRMHEADER ready to be turned into a license challenge.

This wraps ktvine's PlayreadyHeader parse with the two things only a CDM needs: the protocol version to declare, and the ability to check a decrypted content key against the header's advertised checksum.

xml is the document verbatim. A challenge embeds it inside signed bytes, so re-serializing it — even into equivalent XML — would change what the signature covers.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The <Version> a challenge for this header must declare.

Link copied to clipboard
Link copied to clipboard
val xml: String

Functions

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun verifyChecksum(kid: Uuid, contentKey: ByteArray): Boolean

Check a decrypted content key against the checksum the header advertises for kid.