Delen via


PlayReadyEncryptionAlgorithm Enum

Definition

Indicates the type of encryption algorithm specified in a PlayReady content header.

public enum class PlayReadyEncryptionAlgorithm
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PlayReadyEncryptionAlgorithm
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PlayReadyEncryptionAlgorithm
var value = Windows.Media.Protection.PlayReady.PlayReadyEncryptionAlgorithm.unprotected
Public Enum PlayReadyEncryptionAlgorithm
Inheritance
PlayReadyEncryptionAlgorithm
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Unprotected 0

Content is not encrypted.

Aes128Ctr 1

AES-128 Counter-mode encryption.

Cocktail 4

Cocktail encryption.

Aes128Cbc 5

AES128CBC encryption.

Unspecified 65535

The encryption method is unspecified.

Uninitialized 2147483647

The encryption method has not been set.

Remarks

Starting with Windows 10, version 1709, this enumeration supports the values Aes128Cbc and Unspecified. On previous versions of Windows 10, some PlayReady APIs will thrown an exception if these values are used. For this reason, you should check for the presence of the enumeration value by calling ApiInformationIsApiContractPresent and specifying major contract version 5 before using the new enum values. For more information, see PlayReadyContentHeader and PlayReadyStatics.CheckSupportedHardware.

Version history

Windows version SDK version Value added
1709 16299 Aes128Cbc
1709 16299 Unspecified

Applies to