<!--
{
  "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

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

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

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

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

### Performing cryptographic operations

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

Encrypts the data you supply with a given algorithm.

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

Exports the data that represents a public key.

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

Verifies a digital signature for the data you supply.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)