AESContentKey Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AESContentKey(Byte[], Guid) |
Initializes a new instance of the AESContentKey class with AES128BitCTR mode. 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(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[], 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. |
AESContentKey(Byte[], Guid)
Initializes a new instance of the AESContentKey class with AES128BitCTR mode. The content key is specified by the caller.
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)
Parameters
- keyBytes
- Byte[]
The content key itself.
- keyId
- Guid
The key identifier for this content key.
Exceptions
Thrown if keyId
is Empty
Thrown if keyBytes
is null.
Applies to
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.
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())
Parameters
- keyId
- Guid
The key identifier for this content key.
- keySeed
- Byte[]
The key seed value used to generate the content key.
Exceptions
Thrown if keySeed
is less than 30 bytes in size.
Thrown if keySeed
is null.
Applies to
AESContentKey(Byte[], Guid, ContentKeyType)
Initializes a new instance of the AESContentKey class with the specified ContentKeyType. The content key is specified by the caller.
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)
Parameters
- keyBytes
- Byte[]
The content key itself.
- keyId
- Guid
The key identifier for this content key.
- keyType
- ContentKeyType
The key type defining the decryption mode which must be one of the following. AES128BitCTRAES128BitCBCKeyExchange
Exceptions
Thrown if keyType
is invalid.
Thrown if keyBytes
is null.
Applies to
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.
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)
Parameters
- keyId
- Guid
The key identifier for this content key.
- keySeed
- Byte[]
The key seed value used to generate the content key.
- keyType
- ContentKeyType
The key type defining the decryption mode which must be one of the following. AES128BitCTRAES128BitCBCKeyExchange
Exceptions
Thrown if keyType
is invalid.
Thrown if keySeed
is null.