diff --git a/Sources/sdlan/AESCipher.swift b/Sources/sdlan/AESCipher.swift index be4ca22..ae92578 100644 --- a/Sources/sdlan/AESCipher.swift +++ b/Sources/sdlan/AESCipher.swift @@ -6,7 +6,7 @@ // import Foundation -protocol AESCipher { +public protocol AESCipher { func decypt(aesKey: Data, data: Data) throws -> Data func encrypt(aesKey: Data, data: Data) throws -> Data diff --git a/Sources/sdlan/RSACipher.swift b/Sources/sdlan/RSACipher.swift index 0bf84b5..8bd4235 100644 --- a/Sources/sdlan/RSACipher.swift +++ b/Sources/sdlan/RSACipher.swift @@ -6,7 +6,7 @@ // import Foundation -protocol RSACipher { +public protocol RSACipher { var pubKey: String {get set} func decode(data: Data) throws -> Data diff --git a/Sources/sdlan/SDLConfiguration.swift b/Sources/sdlan/SDLConfiguration.swift index 7595ac3..3a9d9fd 100644 --- a/Sources/sdlan/SDLConfiguration.swift +++ b/Sources/sdlan/SDLConfiguration.swift @@ -8,7 +8,7 @@ import Foundation import NIOCore // 配置项目 -final class SDLConfiguration { +public class SDLConfiguration { struct StunServer { let host: String diff --git a/Sources/sdlan/SDLContext.swift b/Sources/sdlan/SDLContext.swift index d89dbe0..91994f5 100644 --- a/Sources/sdlan/SDLContext.swift +++ b/Sources/sdlan/SDLContext.swift @@ -15,7 +15,7 @@ import Combine 1. 处理rsa的加解密逻辑 */ -class SDLContext: @unchecked Sendable { +public class SDLContext: @unchecked Sendable { // 路由信息 struct Route {