Create a settings object used to create a protection handler for publishing new content.
Gets the set of supported capabilities being passed to RMS.
Remove a capability from the set of capabilities supported when calling RMS.
Add a capability to the set of capabilities supported when calling RMS.
Gets the cipher mode of the protection handler.
Decrypt a buffer.
Encrypt a buffer.
Gets whether or not protection handler uses deprecated crypto algorithm (ECB) for backwards compatibility.
Gets the content IE of protected content.
Gets the owner of protected content.
Gets size of buffer required to store the owner of protected content.
Gets the user that has been granted access to protected content.
Gets size of buffer required to store user that has been granted access to protected content.
Gets the block size (in bytes) for the cipher mode used by a protection handler.
Calculates size of protected content, factoring in padding, etc.
Gets list of rights granted to a user.
Gets protection descriptor.
Gets pre-license.
Gets size of pre-license (in bytes)
Gets publishing license.
Gets size of publishing license (in bytes)
Sets whether or not protection handler creation permits online HTTP operations.
Create a settings object used to create a protection handler for consuming existing content.
Configures custom settings, used for feature gating and testing.
Sets application scenario Id.
Sets pre-license user.
Sets delegated user.
Sets whether or not PL is in JSON format (default is XML)
Sets whether or not non-MIP-aware applications are allowed to open protected content.
Sets whether or not deprecated crypto algorithm (ECB) is preferred for backwards compatibility.
- Parameters
-
descriptor | Protection details |
settings | [Output] Newly-created settings instance |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Protection handler settings |
isDeprecatedAlgorithmPreferred | Whether or not deprecated algorithm is preferred |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Protection handler settings |
isAuditedExtractionAllowed | Whether or not non-MIP-aware applications are allowed to open protected content |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Protection handler settings |
isPublishingFormatJson | Whether or not resulting PL should be in JSON format |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Protection handler settings |
delegatedUserEmail | Email address of delegated user |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- A delegated user is specified when the authenticating user/application is acting on behalf of another user
- Parameters
-
settings | Protection handler settings |
preLicenseUserEmail | Email address of pre-license user |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- A pre-license user is specified when a pre-license should be fetched when publishing
- Parameters
-
settings | Protection handler settings |
applicationScenarioId | application scenario Id |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Protection handler settings |
customSettings | Key/value pairs of custom settings |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
publishingLicenseBuffer | Buffer containing raw publishing license |
publishingLicenseBufferSize | Size of publishing license buffer |
settings | [Output] Newly-created settings instance |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
preLicenseBuffer | Buffer containing raw pre license buffer |
preLicenseBufferSize | Size of pre license buffer |
publishingLicenseBuffer | Buffer containing raw publishing license |
publishingLicenseBufferSize | Size of publishing license buffer |
settings | [Output] Newly-created settings instance |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Protection handler settings |
isOfflineOnly | True if HTTP operations are forbidden, else false |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- If this is set to true, protection handler creation will only succeed if content has already been previously decrypted and its unexpired license is cached. A MIP_RESULT_ERROR_NETWORK result will be returned if cached content is not found.
- Parameters
-
handler | Handler representing protected content |
publishingLicenseBufferSize | [Output] Size of publishing license (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
publishingLicenseBuffer | [Output] Buffer to which publishing license will be written |
publishingLicenseBufferSize | Size of publishing license buffer |
actualPublishingLicenseSize | [Output] Actual size of publishing license (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- If publishingLicenseBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and actualPublishingLicenseSize will be set to the minimum required buffer size.
- Parameters
-
handler | Handler representing protected content |
format | Pre-license format |
preLicenseBufferSize | [Output] Size of pre-license (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
format | Pre-license format |
preLicenseBuffer | [Output] Buffer to which pre-license will be written |
preLicenseBufferSize | Size of pre-license buffer |
actualPreLicenseSize | [Output] Actual size of pre-license (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- If preLicenseBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and actualPreLicenseSize will be set to the minimum required buffer size.
- Parameters
-
handler | Handler representing protected content |
descriptor | [Output] Protection descriptor |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
rights | [Output] List of rights granted to a user, memory owned by caller |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- The 'rights' variable must be released by the caller by calling MIP_CC_ReleaseStringList
- Parameters
-
handler | Handler representing protected content |
unprotectedSize | Size of unprotected/cleartext content (in bytes) |
includesFinalBlock | Describes if the unprotected content in question includes the final block or not. For example, in CBC4k encryption mode, non-final protected blocks are the same size as unprotected blocks, but final protected blocks are larger than their unprotected counterparts. |
protectedSize | [Output] Size of protected content |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
blockSize | [Output] Block size (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
issuedUserSize | [Output] Size of buffer to hold issued user (in number of chars) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
issuedUserBuffer | [Output] Buffer the issued user will be copied into. |
issuedUserBufferSize | Size (in number of chars) of the issuedUserBuffer. |
actualIssuedUserSize | [Output] Number of chars written to the buffer |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- If issuedUserBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and actualIssuedUserSize will be set to the minimum required buffer size.
- Parameters
-
handler | Handler representing protected content |
ownerSize | [Output] Size of buffer to hold issued user (in number of chars) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
ownerBuffer | [Output] Buffer the issued user will be copied into. |
ownerBufferSize | Size (in number of chars) of the ownerBuffer. |
actualOwnerSize | [Output] Number of chars written to the buffer |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- If ownerBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and actualOwnerSize will be set to the minimum required buffer size.
- Parameters
-
handler | Handler representing protected content |
contentId | [Output] Content ID |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Note
- Publishing licenses will have this identifier surrounded by curly braces "{}". Those braces are removed from the value stored in contentId
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
doesUseDeprecatedAlgorithm | [Output] Whether or not protection handler uses deprecated crypto algorithm |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
offsetFromStart | Relative position of inputBuffer from the very beginning of the cleartext content |
inputBuffer | Buffer of cleartext content that will be encrypted |
inputBufferSize | Size (in bytes) of input buffer |
outputBuffer | [Output] Buffer into which encrypted content will be copied |
outputBufferSize | Size (in bytes) of output buffer |
isFinal | If input buffer contains the final cleartext bytes or not |
actualEncryptedSize | [Output] Actual size of encrypted content (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
offsetFromStart | Relative position of inputBuffer from the very beginning of the encrypted content |
inputBuffer | Buffer of encrypted content that will be decrypted |
inputBufferSize | Size (in bytes) of input buffer |
outputBuffer | [Output] Buffer into which decrypted content will be copied |
outputBufferSize | Size (in bytes) of output buffer |
isFinal | If input buffer contains the final encrypted bytes or not |
actualDecryptedSize | [Output] Actual size of encrypted content (in bytes) |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
handler | Handler representing protected content |
cipherMode | [Output] The cipher mode |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
consumptionSettings | Consumption handler settings |
capability | The capability to add to indicate a supported feature to RMS |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
consumptionSettings | Consumption handler settings |
capability | The capability to remove from the supported features in RMS |
removed | [Output] A boolean indiciating if the supplied capability was removed. |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
consumptionSettings | Consumption handler settings |
capabilities | [Output] Gets the list of capabilities being passed to RMS |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- The returned 'capabilities' (mip_cc_string_list*) must be freed by calling MIP_CC_ReleaseStringList.