Instance Method

isAlgorithm(_:)

Returns whether the specified algorithm is the target operation algorithm.

Declaration

func isAlgorithm(_ algorithm: SecKeyAlgorithm) -> Bool

Parameters

algorithm

The algorithm to be checked.

Return Value

true if algorithm is the target operation algorithm; otherwise, false.

See Also

Determining Algorithm Usage

func supportsAlgorithm(SecKeyAlgorithm) -> Bool

Whether the specified algorithm is the target operation algorithm, or one of the other algorithms used.