pub unsafe extern "C-unwind" fn SecVerifyTransformCreate(
key: &SecKey,
signature: Option<&CFData>,
error: *mut *mut CFError,
) -> Option<CFRetained<SecTransform>>
SecBase
and SecSignVerifyTransform
and SecTransform
only.Expand description
Creates a verify computation object.
Parameter key
: A SecKey with the public key used for signing.
Parameter signature
: A CFDataRef with the signature. This value may be
NULL, and you may connect a transform to kSecTransformSignatureAttributeName
to supply it from another signature.
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 verifies a cryptographic signature. The InputIS defaults to kSecInputIsPlainText, and the DigestType and DigestLength default to something appropriate for the type of key you have supplied.
ยงSafety
error
must be a valid pointer or null.