MFSampleEncryptionProtectionScheme enumeration (mfapi.h)

Specifies the supported protection schemes for encrypted samples.

Syntax

typedef enum _MFSampleEncryptionProtectionScheme {
  MF_SAMPLE_ENCRYPTION_PROTECTION_SCHEME_NONE = 0,
  MF_SAMPLE_ENCRYPTION_PROTECTION_SCHEME_AES_CTR = 1,
  MF_SAMPLE_ENCRYPTION_PROTECTION_SCHEME_AES_CBC = 2
} MFSampleEncryptionProtectionScheme;

Constants

 
MF_SAMPLE_ENCRYPTION_PROTECTION_SCHEME_NONE
Value: 0
No encryption scheme.
MF_SAMPLE_ENCRYPTION_PROTECTION_SCHEME_AES_CTR
Value: 1
The encryption scheme is AES counter mode (CTR).
MF_SAMPLE_ENCRYPTION_PROTECTION_SCHEME_AES_CBC
Value: 2
The encryption scheme is Cipher Block Chaining (CBC).

Remarks

The encryption scheme for a sample is specified using the MFSampleExtension_Encryption_ProtectionScheme attribute.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1709 [desktop apps only]
Minimum supported server None supported
Header mfapi.h