Function

SecSignTransformCreate

Creates a signing transform object.

Declaration

SecTransformRef SecSignTransformCreate(SecKeyRef key, CFErrorRef  _Nullable *error);

Parameters

key

A SecKeyRef with the private key used for signing.

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.

Return Value

A pointer to a new transform or NULL on error. Call the CFRelease function to free this object's memory when you are done with it.

Discussion

This function creates a transform which computes a cryptographic signature. The kSecInputIsAttributeName attribute defaults to kSecInputIsPlainText, and the kSecDigestTypeAttribute and kSecDigestLengthAttribute attributes default to something appropriate for the type of key you have supplied.

See Also

Signing

SecVerifyTransformCreate

Creates a verify transform object.

SecDigestTransformCreate

Creates a digest transform object.

SecDigestTransformGetTypeID

Returns the unique identifier of the opaque type to which a digest transform belongs.