Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Swift Crypto is an open-source implementation of a substantial portion of the AP
Swift Crypto is available as a Swift Package Manager package. To use it, add the following dependency in your `Package.swift`:

```swift
// swift-crypto 1.x, 2.x and 3.x are almost API compatible, so most clients
// swift-crypto 1.x, 2.x, 3.x, and 4.x are almost API compatible, so most clients
// should allow any of them
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "4.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "5.0.0"),
```

and to your target, add `Crypto` to your dependencies. You can then `import Crypto` to get access to Swift Crypto's functionality.
Expand Down Expand Up @@ -108,7 +108,7 @@ If you believe you have identified a vulnerability in Swift Crypto, please [repo

### Swift versions

The most recent versions of Swift Crypto support Swift 5.7 and newer. The minimum Swift version supported by Swift Crypto releases are detailed below:
The most recent versions of Swift Crypto support Swift 6 and newer. The minimum Swift version supported by Swift Crypto releases are detailed below:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we say 6.0 to help future greps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always tweak that later as needed, for now I'd like to get this merged.


Swift Crypto | Minimum Swift Version
--------------------|----------------------
Expand All @@ -119,7 +119,8 @@ Swift Crypto | Minimum Swift Version
`3.1.0 ..< 3.3.0` | 5.7
`3.3.0 ..< 3.8.0` | 5.8
`3.9.0 ..< 3.13.0` | 5.9
`3.13.0 ...` | 5.10
`3.13.0 ..< 4.0.0` | 5.10
`4.0.0 ...` | 6.0

### Compatibility

Expand All @@ -131,10 +132,14 @@ SemVer and Swift Crypto's Public API guarantees should result in a working progr

Swift Crypto 2.0.0 was released in September 2021. The only breaking change between Swift Crypto 2.0.0 and 1.0.0 was the addition of new cases in the `CryptoError` enumeration. For most users, then, it's safe to depend on either the 1.0.0 _or_ 2.0.0 series of releases.

Swift Crypto 3.0.0 was released in September 2023. Again the only breaking change was the addition of new cases in the `CryptoError` enumeration, so most users can safely depend on the 1.0.0, 2.0.0, or 3.0.0 series of releases.

Swift Crypto 4.0.0 was released in September 2025. Again the only breaking change was the addition of new cases in the `CryptoError` enumeration, so most users can safely depend on the 1.0.0, 2.0.0, 3.0.0, or 4.0.0 series of releases. Note that in this release `_CryptoExtras` was renamed to `CryptoExtras`. The old products and targets have been kept around for compatibility reasons, but users depending only on new code should use `CryptoExtras` not `_CryptoExtras`.

To do so, please use the following dependency in your `Package.swift`:

```swift
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "5.0.0"),
```

### Developing Swift Crypto on macOS
Expand Down
37 changes: 0 additions & 37 deletions Sources/_CryptoExtras/EC/ObjectIdentifier.swift

This file was deleted.

76 changes: 0 additions & 76 deletions Sources/_CryptoExtras/EC/PKCS8DERRepresentation.swift

This file was deleted.

93 changes: 0 additions & 93 deletions Sources/_CryptoExtras/EC/PKCS8PrivateKey.swift

This file was deleted.

74 changes: 0 additions & 74 deletions Sources/_CryptoExtras/EC/RFC8410AlgorithmIdentifier.swift

This file was deleted.

35 changes: 0 additions & 35 deletions Sources/_CryptoExtras/Util/ThreadSpecific/ThreadOps.swift

This file was deleted.

Loading
Loading