Go to the source code of this file.
Create a new encrypt string param opaque object.
- Parameters
-
vBytesPtr | - Const pointer to the data buffer. |
vBytesLength | - The file on which the encryption is performed |
- Returns
- VEncryptStringParams opaque object. NOTE: On failure returns NULL ptr.
Destruct the EncryptStringParams instance.
- Parameters
-
vEncryptStringParamsPtr | - The pointer to EncryptStringParams opaque object. |
Set the display message for the tdf, this message shows up on the Virtru dashboard
- Parameters
-
vEncryptStringParamsPtr | - The pointer to EncryptStringParams opaque object. |
displayMessage | - The display message for the tdf, null terminated string. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Set the display name for the tdf, this name shows up on the Virtru dashboard NOTE: If not set, the basename of inFilePath will be used
- Parameters
-
vEncryptStringParamsPtr | - The pointer to EncryptStringParams opaque object. |
displayName | - The display name for the tdf, null terminated string. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
The below methods are optional, if not specified the defaults are used.Set the mime type (format) of the file that will be encrypted NOTE: The default will be 'application/octet-stream' if not specified
- Parameters
-
vEncryptStringParamsPtr | - The pointer to EncryptStringParams opaque object. |
mimeType | - The mime type of the file, null terminated string. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Set the policy that to be applied to the tdf NOTE: If there is no policy defined for the tdf, default policy settings will be applied
- Parameters
-
vEncryptStringParamsPtr | - The pointer to EncryptStringParams opaque object. |
vPolicyPtr | - The pointer to policy opaque object. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success
Add access to the TDF file/data for the users in the list
- Parameters
-
vEncryptStringParamsPtr | - The pointer to EncryptStringParams opaque object. |
users | - Share the TDF with the users in the users array |
usersCount | - Total user count in the array. |
- Returns
- VSTATUS - VSTATUS_SUCCESS on success