<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/P384/Signing/PublicKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit4P384O7SigningO9PublicKeyV"
  },
  "title" : "P384.Signing.PublicKey"
}
-->

# P384.Signing.PublicKey

A P-384 public key used to verify cryptographic signatures.

```
struct PublicKey
```

## Topics

### Creating a key

[`init(rawRepresentation:)`](/documentation/CryptoKit/P384/Signing/PublicKey/init(rawRepresentation:))

Creates a P-384 public key for signing from a collection of bytes.

[`init(compactRepresentation:)`](/documentation/CryptoKit/P384/Signing/PublicKey/init(compactRepresentation:))

Creates a P-384 public key for signing from a compact
representation of the key.

[`init(compressedRepresentation:)`](/documentation/CryptoKit/P384/Signing/PublicKey/init(compressedRepresentation:))

Creates a P-384 public key for signing from a compressed representation of
the key.

[`init(derRepresentation:)`](/documentation/CryptoKit/P384/Signing/PublicKey/init(derRepresentation:))

Creates a P-384 public key for signing from a Distinguished Encoding
Rules (DER) encoded representation.

[`init(pemRepresentation:)`](/documentation/CryptoKit/P384/Signing/PublicKey/init(pemRepresentation:))

Creates a P-384 public key for signing from a Privacy-Enhanced Mail
(PEM) representation.

[`init(x963Representation:)`](/documentation/CryptoKit/P384/Signing/PublicKey/init(x963Representation:))

Creates a P-384 public key for signing from an ANSI x9.63
representation.

### Representing the key

[`rawRepresentation`](/documentation/CryptoKit/P384/Signing/PublicKey/rawRepresentation)

A full representation of the public key.

[`compactRepresentation`](/documentation/CryptoKit/P384/Signing/PublicKey/compactRepresentation)

A compact representation of the public key.

[`compressedRepresentation`](/documentation/CryptoKit/P384/Signing/PublicKey/compressedRepresentation)

A compressed representation of the public key.

[`derRepresentation`](/documentation/CryptoKit/P384/Signing/PublicKey/derRepresentation)

A Distinguished Encoding Rules (DER) encoded representation of the public key.

[`pemRepresentation`](/documentation/CryptoKit/P384/Signing/PublicKey/pemRepresentation)

A Privacy-Enhanced Mail (PEM) representation of the public key.

[`x963Representation`](/documentation/CryptoKit/P384/Signing/PublicKey/x963Representation)

An ANSI x9.63 representation of the public key.

### Verifying a signature

[`isValidSignature(_:for:)`](/documentation/CryptoKit/P384/Signing/PublicKey/isValidSignature(_:for:)-2zf75)

Verifies an elliptic curve digital signature algorithm (ECDSA)
signature on a block of data over the P-384 elliptic curve.

[`isValidSignature(_:for:)`](/documentation/CryptoKit/P384/Signing/PublicKey/isValidSignature(_:for:)-1hrtv)

Verifies an elliptic curve digital signature algorithm (ECDSA)
signature on a digest over the P-384 elliptic curve.

[`ECDSASignature`](/documentation/CryptoKit/P384/Signing/ECDSASignature)

A P-384 elliptic curve digital signature algorithm (ECDSA) signature.

## 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)