Share via


AESContentKey Class

Definition

Represents the key used to encrypt PlayReady content with an AES algorithm.

public class AESContentKey : Microsoft.Media.Drm.ContentKey
type AESContentKey = class
    inherit ContentKey
Public Class AESContentKey
Inherits ContentKey
Inheritance
AESContentKey

Remarks

All content keys have a key identifier put into the header of the content which identifies what key was used to encrypt that content. The key identifier can also be used with a key seed value to generate the content key. This method of key generation means that the service does not have to store a large database of content keys. However, content keys can be generated using any cryptographically sound manner.

Constructors

AESContentKey(Byte[], Guid)

Initializes a new instance of the AESContentKey class with AES128BitCTR mode. The content key is specified by the caller.

AESContentKey(Byte[], Guid, ContentKeyType)

Initializes a new instance of the AESContentKey class with the specified ContentKeyType. The content key is specified by the caller.

AESContentKey(Guid, Byte[])

Initializes a new instance of the AESContentKey class with AES128BitCTR mode. The content key is auto-generated by the SDK using a key seed.

AESContentKey(Guid, Byte[], ContentKeyType)

Initializes a new instance of the AESContentKey class with the specified ContentKeyType. The content key is auto-generated by the SDK using a key seed.

Properties

EncryptionType

Gets the ContentKeyType of the content key.

(Inherited from ContentKey)
KeyId

Gets the key identifier of the content key.

(Inherited from ContentKey)
KeyIdAsString

Gets the string representation of the key identifier of the content key.

(Inherited from ContentKey)
KeyType

Gets the ContentKeyType of the content key.

Methods

GetKeyData()

Gets the binary key data of the content key.

(Inherited from ContentKey)
GetKeyIdAsString()

Returns the string representation of the key identifier of the content key. Returns the same value as KeyIdAsString

(Inherited from ContentKey)

Applies to