Skip to content

Commit

Permalink
switched sha2 to UncommonCrypto version
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych committed May 20, 2021
1 parent 32c010b commit d611e00
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1,342 deletions.
7 changes: 5 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ let package = Package(
name: "Ed25519",
targets: ["Ed25519"])
],
dependencies: [],
dependencies: [
.package(url: "https://github.com/tesseract-one/UncommonCrypto.swift.git", from: "0.1.0")
],
targets: [
.target(
name: "Sr25519",
Expand All @@ -23,11 +25,12 @@ let package = Package(
dependencies: ["CSr25519", "Sr25519Helpers"]),
.target(
name: "CSr25519",
dependencies: [],
dependencies: ["CUncommonCrypto"],
cSettings: [
.define("ED25519_CUSTOMRANDOM"),
.define("ED25519_CUSTOMHASH"),
.define("ED25519_NO_INLINE_ASM"),
.define("SR25519_CUSTOMHASH"),
.headerSearchPath("src"),
.headerSearchPath("src/ed25519-donna")
]
Expand Down
Loading

0 comments on commit d611e00

Please sign in to comment.