Function

SecEncodeTransformCreate(_:_:)

Creates an encode transform object.

Declaration

func SecEncodeTransformCreate(_ encodeType: CFTypeRef, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> SecTransform?

Parameters

encodeType

The type of digest to compute. You may pass NULL for this parameter, in which case an appropriate algorithm will be chosen for you. See Encoding Types for a list of valid values.

error

A pointer to a CFError. This pointer will be set if an error occurred. This value may be NULL if you do not want an error returned.

Return Value

A new transform, or nil on error.

Discussion

This function creates a transform which computes an encode.