<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/HPKE/Ciphersuite/Curve25519_SHA256_ChachaPoly",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit4HPKEO11CiphersuiteV28Curve25519_SHA256_ChachaPolyAEvpZ"
  },
  "title" : "Curve25519_SHA256_ChachaPoly"
}
-->

# Curve25519_SHA256_ChachaPoly

A cipher suite for HPKE that uses X25519 elliptic curve key agreement, SHA-2 key derivation
with a 256-bit digest, and the ChaCha20 stream cipher with the Poly1305 message authentication code.

```
static let Curve25519_SHA256_ChachaPoly: HPKE.Ciphersuite
```

---

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)