Redigera

Dela via


DRM_KeySeed

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The DRM_KeySeed property contains the key seed that will be used in conjunction with the KeyID to create the key.

Global Constant

g_wszWMDRM_KeySeed

Data Type

WMT_TYPE_STRING

Remarks

This property can be set using IWMDRMWriter::SetDRMAttribute. It is not accessible by the reader object.

A key seed is typically used to protect multiple files or sets of files, for example all the files issued by a license server, or perhaps all the files by a particular artist. The KeyID, however, is unique for each file.

The key seed must remain a secret that is shared only between the content creator and the license distributor. This value is not stored in the DRM header and it is neither needed by nor accessible to DRM player applications.

A new key seed can be generated using the IWMDRMWriter::GenerateKeySeed method or by any other suitable means.

See also

DRM Properties