|
Create a new CCM Security Mode configuration.
- Resource Management:
- This function allocates resources that must later be freed by calling DOFSecurityMode_Destroy.
- Parameters
-
algorithm | The recognized cipher algorithm; refer to DOFCipherAlgorithm. |
strength | The cipher security strength as defined by the OpenDOF Project; refer to DOFCipherStrength. |
macSize | The size of the MAC to use for the CCM mode. This should be an even integer between 4 and 16, inclusive. |
isEncrypt | Flag indicating that the CCM mode should be encrypted (TRUE) or only authenticated (FALSE). |
- Returns
- A new DOFSecurityModeCCM, created with the provided information.
- Exceptions
-
NULL | is returned if insufficient resources are available to create the mode, or if an invalid cipher or macSize is specified. |
- See Also
- DOFSecurityMode_Destroy
|