Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add availability annotations to unavailable crypto properties #192

Merged
merged 5 commits into from
Sep 11, 2024
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
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,5 @@ jobs:
steps:
- name: Check out JWTKit
uses: actions/checkout@v4
- name: Run iOS Tests on iOS 15
run: xcodebuild test -scheme jwt-kit -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.0'
- name: Run iOS Tests on iOS 16
run: xcodebuild test -scheme jwt-kit -destination 'platform=iOS Simulator,name=iPhone 13,OS=16.0'
- name: Run iOS Tests
run: xcodebuild -scheme jwt-kit -destination generic/platform=iOS
2 changes: 2 additions & 0 deletions Sources/JWTKit/ECDSA/ECDSAKeyTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ public protocol ECDSAPublicKey: Sendable {
init(rawRepresentation: some ContiguousBytes) throws
init(compactRepresentation: some ContiguousBytes) throws
init(x963Representation: some ContiguousBytes) throws
@available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *)
init(compressedRepresentation: some ContiguousBytes) throws
init(pemRepresentation: String) throws
init<Bytes>(derRepresentation: Bytes) throws where Bytes: RandomAccessCollection, Bytes.Element == UInt8
init?(_ key: X509.Certificate.PublicKey)
var compactRepresentation: Data? { get }
var rawRepresentation: Data { get }
var x963Representation: Data { get }
@available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *)
var compressedRepresentation: Data { get }
var derRepresentation: Data { get }
var pemRepresentation: String { get }
Expand Down