---
title: "canVerify(using:)"
framework: localauthentication
role: symbol
role_heading: Instance Method
path: "localauthentication/lapublickey/canverify(using:)"
---

# canVerify(using:)

Checks whether the algorithm you supply is valid for verifying signatures with the key.

## Declaration

```swift
func canVerify(using algorithm: SecKeyAlgorithm) -> Bool
```

## Parameters

- `algorithm`: A cryptographic algorithm.

## Return Value

Return Value A Boolean value that indicates whether the algorithm you supply is valid for verifying signatures with the key.

## See Also

### Checking algorithm support

- [canEncrypt(using:)](localauthentication/lapublickey/canencrypt(using:).md)
