<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecKeyGeneratePairBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@T@SecKeyGeneratePairBlock"
  },
  "title" : "SecKeyGeneratePairBlock"
}
-->

# SecKeyGeneratePairBlock

A block called with the results of a call to [`SecKeyGeneratePairAsync(_:_:_:)`](/documentation/Security/SecKeyGeneratePairAsync(_:_:_:)).

```
typealias SecKeyGeneratePairBlock = (SecKey, SecKey, CFError) -> Void
```

---

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)