<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit13SecureEnclaveO7MLDSA87O10PrivateKeyV"
  },
  "title" : "SecureEnclave.MLDSA87.PrivateKey"
}
-->

# SecureEnclave.MLDSA87.PrivateKey

```
struct PrivateKey
```

## Topics

### Initializers

[`init(accessControl: SecAccessControl) throws`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/init(accessControl:))

[`init(accessControl: SecAccessControl, authenticationContext: LAContext?) throws`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/init(accessControl:authenticationContext:))

[`init<D>(dataRepresentation: D) throws`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/init(dataRepresentation:))

[`init<D>(dataRepresentation: D, authenticationContext: LAContext?) throws`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/init(dataRepresentation:authenticationContext:))

### Instance Properties

[`let dataRepresentation: Data`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/dataRepresentation)

A data representation of the private key.

[`let publicKey: MLDSA87.PublicKey`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/publicKey)

The corresponding public key.

### Instance Methods

[`func signature<D>(for: D) throws -> Data`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/signature(for:))

Generates a MLDSA87 signature

[`func signature<D, C>(for: D, context: C) throws -> Data`](/documentation/CryptoKit/SecureEnclave/MLDSA87/PrivateKey/signature(for:context:))

Generates a MLDSA87 signature, with context

## Relationships

### Conforms To

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

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

---

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)