Skip to content

Commit

Permalink
Merge pull request #48 from niscy-eudiw/feature/hasing-access
Browse files Browse the repository at this point in the history
Hashing algotrithms access
  • Loading branch information
dtsiflit authored Jan 15, 2025
2 parents d5aa5c3 + 47dac21 commit a8f7d3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-eudi-lib-sdjwt-swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0'
xcode-version: '16.1.0'
- uses: actions/checkout@v4
- run:
fastlane tests
2 changes: 1 addition & 1 deletion Sources/Digest/HashingAlgorithm/HashingAlgorithm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public enum HashingAlgorithmIdentifier: String, CaseIterable {
case SHA384 = "sha-384"
case SHA512 = "sha-512"

func hashingAlgorithm() -> HashingAlgorithm {
public func hashingAlgorithm() -> HashingAlgorithm {

switch self {
case .SHA3256:
Expand Down
6 changes: 3 additions & 3 deletions Sources/Digest/HashingAlgorithm/SHA384.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
import Foundation
import CryptoKit

class SHA384Hashing: HashingAlgorithm {
public class SHA384Hashing: HashingAlgorithm {

// MARK: - Properties

var identifier: String = "sha-384"
public var identifier: String = "sha-384"

// MARK: - Methods

func hash(disclosure: Disclosure) -> Data? {
public func hash(disclosure: Disclosure) -> Data? {
guard let inputData = disclosure.data(using: .utf8) else {
return nil
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/Digest/HashingAlgorithm/SHA512.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
import Foundation
import CryptoKit

class SHA512Hashing: HashingAlgorithm {
public class SHA512Hashing: HashingAlgorithm {

// MARK: - Properties

var identifier: String = "sha-512"
public var identifier: String = "sha-512"

// MARK: - Methods

func hash(disclosure: Disclosure) -> Data? {
public func hash(disclosure: Disclosure) -> Data? {
guard let inputData = disclosure.data(using: .utf8) else {
return nil
}
Expand Down

0 comments on commit a8f7d3a

Please sign in to comment.