Skip to content

Commit

Permalink
use apple crypto package (delegates to CryptoKit on Apple platforms)
Browse files Browse the repository at this point in the history
  • Loading branch information
phisakel committed Oct 15, 2023
1 parent 7f24d7c commit 030aa42
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"pins" : [
{
"identity" : "swift-crypto",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-crypto.git",
"state" : {
"revision" : "60f13f60c4d093691934dc6cfdf5f508ada1f894",
"version" : "2.6.0"
}
},
{
"identity" : "swiftcbor",
"kind" : "remoteSourceControl",
Expand Down
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ let package = Package(
targets: ["MdocDataModel18013"]),
],
dependencies: [
.package(url: "https://github.com/valpackett/SwiftCBOR.git", branch: "master")
.package(url: "https://github.com/valpackett/SwiftCBOR.git", branch: "master"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"),
],

targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "MdocDataModel18013", dependencies: ["SwiftCBOR"]),
name: "MdocDataModel18013", dependencies: ["SwiftCBOR", .product(name: "Crypto", package: "swift-crypto")]),
.testTarget(
name: "MdocDataModel18013Tests",
dependencies: ["MdocDataModel18013"]),
Expand Down
2 changes: 1 addition & 1 deletion Sources/MdocDataModel18013/Cose.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.

import Foundation
import SwiftCBOR
import Security
//

extension Cose {
/// COSE Message Identification
Expand Down
2 changes: 1 addition & 1 deletion Sources/MdocDataModel18013/DeviceEngagement/CoseKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import CryptoKit
import Crypto
import Foundation
import SwiftCBOR

Expand Down

0 comments on commit 030aa42

Please sign in to comment.