<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LocalAuthentication",
  "identifier" : "/documentation/LocalAuthentication/LAPublicKey",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Local Authentication"
    ],
    "preciseIdentifier" : "c:objc(cs)LAPublicKey"
  },
  "title" : "LAPublicKey"
}
-->

# LAPublicKey

The public portion of an asymmetric key pair.

```
class LAPublicKey
```

## Topics

### Checking algorithm support

[`canEncrypt(using:)`](/documentation/LocalAuthentication/LAPublicKey/canEncrypt(using:))

Checks whether the algorithm you supply is valid for encrypting data with the key.

[`canVerify(using:)`](/documentation/LocalAuthentication/LAPublicKey/canVerify(using:))

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

### Performing cryptographic operations

[`encrypt(_:algorithm:completion:)`](/documentation/LocalAuthentication/LAPublicKey/encrypt(_:algorithm:completion:))

Encrypts the data you supply with a given algorithm.

[`exportBytes(completion:)`](/documentation/LocalAuthentication/LAPublicKey/exportBytes(completion:))

Exports the data that represents a public key.

[`verify(_:signature:algorithm:completion:)`](/documentation/LocalAuthentication/LAPublicKey/verify(_:signature:algorithm:completion:))

Verifies a digital signature for the data you supply.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)