Function

SecSignTransformCreate(_:_:)

Creates a signing transform object.

Declaration

func SecSignTransformCreate(_ key: SecKey, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> SecTransform?

Parameters

key

A SecKey with the private key used for signing.

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 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.