---
title: LAPublicKey
framework: localauthentication
role: symbol
role_heading: Class
path: localauthentication/lapublickey
---

# LAPublicKey

The public portion of an asymmetric key pair.

## Declaration

```swift
class LAPublicKey
```

## Topics

### Checking algorithm support

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

### Performing cryptographic operations

- [encrypt(_:algorithm:completion:)](localauthentication/lapublickey/encrypt(_:algorithm:completion:).md)
- [exportBytes(completion:)](localauthentication/lapublickey/exportbytes(completion:).md)
- [verify(_:signature:algorithm:completion:)](localauthentication/lapublickey/verify(_:signature:algorithm:completion:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Key pairs

- [LAPrivateKey](localauthentication/laprivatekey.md)
