Contents

CMSEncoderSetSignerAlgorithm(_:_:)

Sets the digest algorithm to use for the signer.

Declaration

func CMSEncoderSetSignerAlgorithm(_ cmsEncoder: CMSEncoder, _ digestAlgorithm: CFString) -> OSStatus

Parameters

  • cmsEncoder:

    The CMSEncoder reference returned by the Cmsencodercreate(_:) function.

  • digestAlgorithm:

    A string representing the digest algorithm to use.

Return Value

A result code. See Security Framework Result Codes.