Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 56a9862

Browse files
committed
Clean up
1 parent 935eeb6 commit 56a9862

File tree

5 files changed

+0
-21
lines changed

5 files changed

+0
-21
lines changed

Sources/Crypto/Data+Crypto.swift

-2
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ extension Data {
4343
return Data(bytes: hash, count: hash.count)
4444
}
4545

46-
4746
// MARK: - HMAC
4847

4948
public func hmac(key: Data, algorithm: Crypto.HMAC.Algorithm) -> Data {
5049
return HMAC.sign(data: self, algorithm: algorithm, key: key)
5150
}
5251

53-
5452
// MARK: - Internal
5553

5654
var hex: String {

Sources/Crypto/HMAC.swift

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public struct HMAC {
3636
}
3737
}
3838

39-
4039
// MARK: - Signing
4140

4241
public static func sign(data: Data, algorithm: Algorithm, key: Data) -> Data {

Sources/Crypto/String+Crypto.swift

-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ extension String {
3737
return hashData?.sha512.hex
3838
}
3939

40-
4140
// MARK: - HMAC
4241

4342
public func hmac(key: String, algorithm: Crypto.HMAC.Algorithm) -> String? {
4443
return Crypto.HMAC.sign(message: self, algorithm: algorithm, key: key)
4544
}
4645

47-
4846
// MARK: - Private
4947

5048
private var hashData: Data? {

Tests/CryptoTests/DigestTests.swift

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// DigestTests.swift
3-
// CryptoTests
4-
//
5-
// Created by Sam Soffes on 4/21/15.
6-
// Copyright (c) 2015 Sam Soffes. All rights reserved.
7-
//
8-
91
import XCTest
102
import Crypto
113

Tests/CryptoTests/HMACTests.swift

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// HMACTests.swift
3-
// Crypto
4-
//
5-
// Created by Sam Soffes on 12/5/15.
6-
// Copyright © 2015 Sam Soffes. All rights reserved.
7-
//
8-
91
import XCTest
102
import Crypto
113

0 commit comments

Comments
 (0)