mirror of
https://github.com/laosb/swift-minisign.git
synced 2025-05-01 10:21:08 +00:00
Compare commits
No commits in common. "main" and "0.1.4" have entirely different histories.
3 changed files with 6 additions and 7 deletions
|
@ -27,7 +27,7 @@ let package = Package(
|
||||||
.default(enabledTraits: ["UseSwiftCrypto"]),
|
.default(enabledTraits: ["UseSwiftCrypto"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/apple/swift-crypto", "1.0.0" ..< "4.0.0"),
|
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"),
|
||||||
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0")
|
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
|
@ -44,6 +44,5 @@ let package = Package(
|
||||||
name: "MinisignTests",
|
name: "MinisignTests",
|
||||||
dependencies: ["Minisign"]
|
dependencies: ["Minisign"]
|
||||||
),
|
),
|
||||||
],
|
]
|
||||||
swiftLanguageModes: [.v6]
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version: 5.9
|
// swift-tools-version: 5.8
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ let package = Package(
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/apple/swift-crypto", "1.0.0" ..< "4.0.0"),
|
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"),
|
||||||
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0"),
|
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0"),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
|
@ -6,9 +6,9 @@ import BLAKE2
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
#if UseSwiftCrypto
|
#if UseSwiftCrypto
|
||||||
@preconcurrency import Crypto
|
import Crypto
|
||||||
#else
|
#else
|
||||||
@preconcurrency import CryptoKit
|
import CryptoKit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public enum SignatureAlgorithm: Sendable, RawRepresentable {
|
public enum SignatureAlgorithm: Sendable, RawRepresentable {
|
||||||
|
|
Loading…
Add table
Reference in a new issue