AESContentKey 建構函式

定義

多載

AESContentKey(Byte[], Guid)

使用 AES128BitCTR 模式, AESContentKey 初始化 類別的新實例。 內容金鑰是由呼叫端所指定。

AESContentKey(Guid, Byte[])

使用 AES128BitCTR 模式, AESContentKey 初始化 類別的新實例。 內容金鑰是由 SDK 使用金鑰種子自動產生。

AESContentKey(Byte[], Guid, ContentKeyType)

使用指定的 AESContentKey 初始化 ContentKeyType 類別的新執行個體。 內容金鑰是由呼叫端所指定。

AESContentKey(Guid, Byte[], ContentKeyType)

使用指定的 AESContentKey 初始化 ContentKeyType 類別的新執行個體。 內容金鑰是由 SDK 使用金鑰種子自動產生。

AESContentKey(Byte[], Guid)

使用 AES128BitCTR 模式, AESContentKey 初始化 類別的新實例。 內容金鑰是由呼叫端所指定。

public AESContentKey (byte[] keyBytes, Guid keyId);
new Microsoft.Media.Drm.AESContentKey : byte[] * Guid -> Microsoft.Media.Drm.AESContentKey
Public Sub New (keyBytes As Byte(), keyId As Guid)

參數

keyBytes
Byte[]

內容金鑰本身。

keyId
Guid

此內容金鑰的金鑰識別碼。

例外狀況

如果 為 keyId ,則擲回 Empty

如果 keyBytes 為 null,則擲回 。

適用於

AESContentKey(Guid, Byte[])

使用 AES128BitCTR 模式, AESContentKey 初始化 類別的新實例。 內容金鑰是由 SDK 使用金鑰種子自動產生。

public AESContentKey (Guid keyId, byte[] keySeed);
new Microsoft.Media.Drm.AESContentKey : Guid * byte[] -> Microsoft.Media.Drm.AESContentKey
Public Sub New (keyId As Guid, keySeed As Byte())

參數

keyId
Guid

此內容金鑰的金鑰識別碼。

keySeed
Byte[]

用來產生內容金鑰的金鑰種子值。

例外狀況

如果 keySeed 大小小於 30 個位元組,則擲回 。

如果 keySeed 為 null,則擲回 。

適用於

AESContentKey(Byte[], Guid, ContentKeyType)

使用指定的 AESContentKey 初始化 ContentKeyType 類別的新執行個體。 內容金鑰是由呼叫端所指定。

public AESContentKey (byte[] keyBytes, Guid keyId, Microsoft.Media.Drm.ContentKeyType keyType);
new Microsoft.Media.Drm.AESContentKey : byte[] * Guid * Microsoft.Media.Drm.ContentKeyType -> Microsoft.Media.Drm.AESContentKey
Public Sub New (keyBytes As Byte(), keyId As Guid, keyType As ContentKeyType)

參數

keyBytes
Byte[]

內容金鑰本身。

keyId
Guid

此內容金鑰的金鑰識別碼。

keyType
ContentKeyType

定義解密模式的金鑰類型,必須是下列其中一項。 AES128BitCTRAES128BitCBCKeyExchange

例外狀況

如果 keyType 無效,則擲回 。

如果 keyBytes 為 null,則擲回 。

適用於

AESContentKey(Guid, Byte[], ContentKeyType)

使用指定的 AESContentKey 初始化 ContentKeyType 類別的新執行個體。 內容金鑰是由 SDK 使用金鑰種子自動產生。

public AESContentKey (Guid keyId, byte[] keySeed, Microsoft.Media.Drm.ContentKeyType keyType);
new Microsoft.Media.Drm.AESContentKey : Guid * byte[] * Microsoft.Media.Drm.ContentKeyType -> Microsoft.Media.Drm.AESContentKey
Public Sub New (keyId As Guid, keySeed As Byte(), keyType As ContentKeyType)

參數

keyId
Guid

此內容金鑰的金鑰識別碼。

keySeed
Byte[]

用來產生內容金鑰的金鑰種子值。

keyType
ContentKeyType

定義解密模式的金鑰類型,必須是下列其中一項。 AES128BitCTRAES128BitCBCKeyExchange

例外狀況

如果 keyType 無效,則擲回 。

如果 keySeed 為 null,則擲回 。

適用於