Share via


I_IrmCrypt.HrEncrypt Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Accepts unencrypted data and encrypts that data in place.

HRESULT HrEncrypt(
    ULONG  ulOffset,
    BYTE  *pbData,
    DWORD  cbData,
    DWORD *pcbData
) PURE;

Parameters

ulOffset

[in] Where in the block to start the encryption. Generally set to zero unless stream functions are encrypting portions of a block.

pbData

[in/out] The data to be encrypted.

cbData

[in] The amount, in bytes, of data to encrypt.

pcbData

[out] The amount of data that the function was actually able to encrypt. Under normal conditions, this is a DWORD whose value is equal to cbData.

Remarks

In general, this method is not called directly by the IRM protector. Instead, this method is used by a stream operator, also written by the protector’s developer, which facilitates a higher level view of encrypting data.

See Also

Reference

I_IrmProtector Interface

I_IrmPolicyInfoRMS Class

I_IrmCrypt Class

Concepts

Information Rights Management in Windows SharePoint Services Overview

Custom IRM Protectors