---
title: LAPrivateKey
framework: localauthentication
role: symbol
role_heading: Class
path: localauthentication/laprivatekey
---

# LAPrivateKey

The private portion of an asymmetric key pair.

## Declaration

```swift
class LAPrivateKey
```

## Topics

### Accessing the associated public key

- [publicKey](localauthentication/laprivatekey/publickey.md)

### Checking algorithm support

- [canDecrypt(using:)](localauthentication/laprivatekey/candecrypt(using:).md)
- [canExchangeKeys(using:)](localauthentication/laprivatekey/canexchangekeys(using:).md)
- [canSign(using:)](localauthentication/laprivatekey/cansign(using:).md)

### Performing cryptographic operations

- [decrypt(_:algorithm:completion:)](localauthentication/laprivatekey/decrypt(_:algorithm:completion:).md)
- [exchangeKeys(publicKey:algorithm:parameters:completion:)](localauthentication/laprivatekey/exchangekeys(publickey:algorithm:parameters:completion:).md)
- [sign(_:algorithm:completion:)](localauthentication/laprivatekey/sign(_: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

- [LAPublicKey](localauthentication/lapublickey.md)
