Skip to content

Commit 6b8e892

Browse files
committed
fix
1 parent 4b1fe9f commit 6b8e892

File tree

4 files changed

+5
-20
lines changed

4 files changed

+5
-20
lines changed

src/Crypto/Algorithm.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
// Copyright (c) 2024 ssh2.app
33
// Created by [email protected] 2024/8/19.
44

5-
#if OPEN_SSL
6-
import OpenSSL
7-
#else
8-
import wolfSSL
9-
#endif
5+
import CSSH
106
import Foundation
117

128
public enum ShaAlgorithm: String, CaseIterable {

src/Crypto/Crypto.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
// Copyright (c) 2024 ssh2.app
33
// Created by [email protected] 2024/8/18.
44

5-
#if OPEN_SSL
6-
import OpenSSL
7-
#else
8-
import wolfSSL
9-
#endif
5+
import CSSH
106
import Foundation
117

128
/// Crypto类提供了一个单例实例,用于表示当前使用的加密库。

src/Crypto/HMAC.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
// Copyright (c) 2024 ssh2.app
33
// Created by [email protected] 2024/8/18.
44

5-
#if OPEN_SSL
6-
import OpenSSL
7-
#else
8-
import wolfSSL
9-
#endif
5+
import CSSH
106
import Foundation
117

128
// 提供HMAC加密功能

src/Crypto/Sha.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
// Copyright (c) 2024 ssh2.app
33
// Created by [email protected] 2024/8/18.
44

5+
import CSSH
56
import Foundation
6-
#if OPEN_SSL
7-
import OpenSSL
8-
#else
9-
import wolfSSL
10-
#endif
7+
118
public extension Crypto {
129
/// 使用指定的算法对字符串进行SHA哈希计算
1310
/// - Parameters:

0 commit comments

Comments
 (0)