This commit is contained in:
anlicheng 2025-07-16 15:49:40 +08:00
parent 93ab2712a8
commit ba09f38c40
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
// //
import Foundation import Foundation
protocol AESCipher { public protocol AESCipher {
func decypt(aesKey: Data, data: Data) throws -> Data func decypt(aesKey: Data, data: Data) throws -> Data
func encrypt(aesKey: Data, data: Data) throws -> Data func encrypt(aesKey: Data, data: Data) throws -> Data

View File

@ -6,7 +6,7 @@
// //
import Foundation import Foundation
protocol RSACipher { public protocol RSACipher {
var pubKey: String {get set} var pubKey: String {get set}
func decode(data: Data) throws -> Data func decode(data: Data) throws -> Data

View File

@ -8,7 +8,7 @@ import Foundation
import NIOCore import NIOCore
// //
final class SDLConfiguration { public class SDLConfiguration {
struct StunServer { struct StunServer {
let host: String let host: String

View File

@ -15,7 +15,7 @@ import Combine
1. rsa的加解密逻辑 1. rsa的加解密逻辑
*/ */
class SDLContext: @unchecked Sendable { public class SDLContext: @unchecked Sendable {
// //
struct Route { struct Route {