OpenDOF Project
DOFSecurityMode DOFSecurityModeCCM_Create ( DOFCipherAlgorithm  algorithm,
DOFCipherStrength  strength,
uint8  macSize,
boolean  isEncrypt 
)

Create a new CCM Security Mode configuration.

Resource Management:
This function allocates resources that must later be freed by calling DOFSecurityMode_Destroy.
Parameters
algorithmThe recognized cipher algorithm; refer to DOFCipherAlgorithm.
strengthThe cipher security strength as defined by the OpenDOF Project; refer to DOFCipherStrength.
macSizeThe size of the MAC to use for the CCM mode. This should be an even integer between 4 and 16, inclusive.
isEncryptFlag indicating that the CCM mode should be encrypted (TRUE) or only authenticated (FALSE).
Returns
A new DOFSecurityModeCCM, created with the provided information.
Exceptions
NULLis returned if insufficient resources are available to create the mode, or if an invalid cipher or macSize is specified.
See Also
DOFSecurityMode_Destroy
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22