Skip to content

Commit

Permalink
Merge pull request #1 from ArnaudWurmel/main
Browse files Browse the repository at this point in the history
Remove warning during build time for SHA2 algorithms
  • Loading branch information
rishi8094 authored Dec 7, 2021
2 parents 358554a + b9681a1 commit a324856
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import PackageDescription

let package = Package(
name: "SwiftyJWT",
platforms: [
.iOS(.v9),
.macOS(.v10_12)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
Expand Down
6 changes: 3 additions & 3 deletions Sources/SwiftyJWA/HMAC/HMACCryptoSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ extension HMACAlgorithm.Hash {
var cryptoSwiftVariant: HMAC.Variant {
switch self {
case .sha256:
return .sha256
return .sha2(.sha256)
case .sha384:
return .sha384
return .sha2(.sha384)
case .sha512:
return .sha512
return .sha2(.sha512)
}
}
}

0 comments on commit a324856

Please sign in to comment.