Skip to content

CryptoKit: Implement EdDSA and XDH; add Swift sources; wire provider#114

Closed
ariawisp wants to merge 2 commits intowhyoleg:mainfrom
ariawisp:feat/cryptokit-ed-xdh
Closed

CryptoKit: Implement EdDSA and XDH; add Swift sources; wire provider#114
ariawisp wants to merge 2 commits intowhyoleg:mainfrom
ariawisp:feat/cryptokit-ed-xdh

Conversation

@ariawisp
Copy link
Contributor

@ariawisp ariawisp commented Sep 7, 2025

What

  • Add CryptoKit implementations for EdDSA (Ed25519) and XDH (X25519).
  • Add Swift sources (SwiftEd.swift) used by the provider.
  • Wire algorithms in CryptoKitCryptographyProvider.
  • No Swift interop/Gradle task changes in this PR.
  • Decoding for DER/PEM unwraps to RAW (SPKI/PKCS#8) and then calls decodeRawWithRawRepresentation (public/private) per maintainer guidance.
  • Internal naming: rename inner types to EdPublicKey/EdPrivateKey and XPublicKey/XPrivateKey.

Why

  • Provide Apple platform support for Ed25519/X25519 behind the new core APIs.

Notes

…wrap-to-RAW+decodeRaw; encode hoists raw; rename *Key; use ObjectIdentifier OIDs
@whyoleg
Copy link
Owner

whyoleg commented Feb 6, 2026

@ariawisp, thanks for the PR! I've finalized the changes and merged them into master (with attribution).

@whyoleg whyoleg closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants