pub unsafe extern "C-unwind" fn SecDigestTransformCreate(
digest_type: Option<&CFType>,
digest_length: CFIndex,
error: *mut *mut CFError,
) -> CFRetained<SecTransform>
SecDigestTransform
and SecTransform
only.Expand description
Creates a digest computation object.
Parameter digestType
: The type of digest to compute. You may pass NULL
for this parameter, in which case an appropriate
algorithm will be chosen for you.
Parameter digestLength
: The desired digest length. Note that certain
algorithms may only support certain sizes. You may
pass 0 for this parameter, in which case an
appropriate length will be chosen for you.
Parameter error
: A pointer to a CFErrorRef. This pointer will be set
if an error occurred. This value may be NULL if you
do not want an error returned.
Returns: A pointer to a SecTransformRef object. This object must be released with CFRelease when you are done with it. This function will return NULL if an error occurred.
This function creates a transform which computes a cryptographic digest.