<!--
{
  "availability" : [
    "macOS: 10.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecAsn1PubKeyInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@SA@SecAsn1PubKeyInfo"
  },
  "title" : "SecAsn1PubKeyInfo"
}
-->

# SecAsn1PubKeyInfo

A structure containing a public key and its associated algorithm.

```
struct SecAsn1PubKeyInfo
```

## Topics

### Public Key Characteristics

[`subjectPublicKey`](/documentation/Security/SecAsn1PubKeyInfo/subjectPublicKey)

[`algorithm`](/documentation/Security/SecAsn1PubKeyInfo/algorithm)

### Creating a Public Key

[`init()`](/documentation/Security/SecAsn1PubKeyInfo/init())

[`init(algorithm:subjectPublicKey:)`](/documentation/Security/SecAsn1PubKeyInfo/init(algorithm:subjectPublicKey:))



---

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)