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

# supportsAlgorithm(_:)

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

## Declaration

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

## Parameters

- `algorithm`: The algorithm to be checked.

## Return Value

Return Value true if algorithm is the target operation algorithm or one of the other algorithms used; otherwise, false.

## See Also

### Determining Algorithm Usage

- [isAlgorithm(_:)](cryptotokenkit/tktokenkeyalgorithm/isalgorithm(_:).md)
