---
title: "isAlgorithm(_:)"
framework: cryptotokenkit
role: symbol
role_heading: Instance Method
path: "cryptotokenkit/tktokenkeyalgorithm/isalgorithm(_:)"
---

# isAlgorithm(_:)

Returns whether the specified algorithm is the target operation algorithm.

## Declaration

```swift
func isAlgorithm(_ algorithm: SecKeyAlgorithm) -> Bool
```

## Parameters

- `algorithm`: The algorithm to be checked.

## Return Value

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

## See Also

### Determining Algorithm Usage

- [supportsAlgorithm(_:)](cryptotokenkit/tktokenkeyalgorithm/supportsalgorithm(_:).md)
