Merge branch 'feature/face_auth' into 'master'
Feature/face auth 分支合并 See merge request !14
Showing
100 changed files
with
180 additions
and
178 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.

869 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type

11.7 KB
@@ -524,6 +524,17 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -524,6 +524,17 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
524 | 524 | ||
525 | 525 | ||
526 | @interface HHMSDK (SWIFT_EXTENSION(hhVDoctorSDK)) | 526 | @interface HHMSDK (SWIFT_EXTENSION(hhVDoctorSDK)) |
527 | +/// 主动发起多人通话 | ||
528 | +/// \param type 呼叫类型 | ||
529 | +/// | ||
530 | +/// \param callee 被呼叫人的信息 | ||
531 | +/// | ||
532 | +- (void)startTeamCall:(enum HHCallType)type callee:(HHCallerInfo * _Nonnull)callee; | ||
533 | +@end | ||
534 | + | ||
535 | + | ||
536 | + | ||
537 | +@interface HHMSDK (SWIFT_EXTENSION(hhVDoctorSDK)) | ||
527 | /// 指定人发起呼叫 | 538 | /// 指定人发起呼叫 |
528 | /// <ul> | 539 | /// <ul> |
529 | /// <li> | 540 | /// <li> |
@@ -534,17 +545,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -534,17 +545,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
534 | @end | 545 | @end |
535 | 546 | ||
536 | 547 | ||
537 | - | ||
538 | -@interface HHMSDK (SWIFT_EXTENSION(hhVDoctorSDK)) | ||
539 | -/// 主动发起多人通话 | ||
540 | -/// \param type 呼叫类型 | ||
541 | -/// | ||
542 | -/// \param callee 被呼叫人的信息 | ||
543 | -/// | ||
544 | -- (void)startTeamCall:(enum HHCallType)type callee:(HHCallerInfo * _Nonnull)callee; | ||
545 | -@end | ||
546 | - | ||
547 | - | ||
548 | @interface HHMSDK (SWIFT_EXTENSION(hhVDoctorSDK)) | 548 | @interface HHMSDK (SWIFT_EXTENSION(hhVDoctorSDK)) |
549 | /// 发起呼叫 | 549 | /// 发起呼叫 |
550 | /// \param uuid 呼叫人uuid | 550 | /// \param uuid 呼叫人uuid |
@@ -778,11 +778,6 @@ SWIFT_CLASS("_TtC12hhVDoctorSDK11TRTCManager") | @@ -778,11 +778,6 @@ SWIFT_CLASS("_TtC12hhVDoctorSDK11TRTCManager") | ||
778 | @end | 778 | @end |
779 | 779 | ||
780 | 780 | ||
781 | -@interface TRTCManager (SWIFT_EXTENSION(hhVDoctorSDK)) <TIMMessageListener> | ||
782 | -- (void)onNewMessage:(NSArray * _Null_unspecified)msgs; | ||
783 | -@end | ||
784 | - | ||
785 | - | ||
786 | 781 | ||
787 | 782 | ||
788 | 783 | ||
@@ -792,6 +787,11 @@ SWIFT_CLASS("_TtC12hhVDoctorSDK11TRTCManager") | @@ -792,6 +787,11 @@ SWIFT_CLASS("_TtC12hhVDoctorSDK11TRTCManager") | ||
792 | @end | 787 | @end |
793 | 788 | ||
794 | 789 | ||
790 | +@interface TRTCManager (SWIFT_EXTENSION(hhVDoctorSDK)) <TIMMessageListener> | ||
791 | +- (void)onNewMessage:(NSArray * _Null_unspecified)msgs; | ||
792 | +@end | ||
793 | + | ||
794 | + | ||
795 | 795 | ||
796 | 796 | ||
797 | 797 |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
@@ -34,28 +34,6 @@ public protocol AEAD { | @@ -34,28 +34,6 @@ public protocol AEAD { | ||
34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) | 34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) |
35 | @objc deinit | 35 | @objc deinit |
36 | } | 36 | } |
37 | -extension AES { | ||
38 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
39 | -} | ||
40 | -extension AES : hhVDoctorSDK.Cryptors { | ||
41 | - @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
42 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
43 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
44 | - if worker is StreamModeWorker { | ||
45 | - return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
46 | - } | ||
47 | - return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
48 | - } | ||
49 | - @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
50 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
51 | - let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
52 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
53 | - if worker is StreamModeWorker { | ||
54 | - return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
55 | - } | ||
56 | - return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
57 | - } | ||
58 | -} | ||
59 | final public class AES { | 37 | final public class AES { |
60 | public enum Error : Swift.Error { | 38 | public enum Error : Swift.Error { |
61 | case invalidKeySize | 39 | case invalidKeySize |
@@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | @@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | ||
267 | return out | 245 | return out |
268 | } | 246 | } |
269 | } | 247 | } |
248 | +extension AES { | ||
249 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
250 | +} | ||
251 | +extension AES : hhVDoctorSDK.Cryptors { | ||
252 | + @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
253 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
254 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
255 | + if worker is StreamModeWorker { | ||
256 | + return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
257 | + } | ||
258 | + return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
259 | + } | ||
260 | + @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
261 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
262 | + let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
263 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
264 | + if worker is StreamModeWorker { | ||
265 | + return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
266 | + } | ||
267 | + return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
268 | + } | ||
269 | +} | ||
270 | extension Array { | 270 | extension Array { |
271 | @inlinable internal init(reserveCapacity: Swift.Int) { | 271 | @inlinable internal init(reserveCapacity: Swift.Int) { |
272 | self = Array<Element>() | 272 | self = Array<Element>() |
@@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | @@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | ||
460 | public typealias Element = hhVDoctorSDK.BlockModeOption | 460 | public typealias Element = hhVDoctorSDK.BlockModeOption |
461 | public typealias RawValue = Swift.Int | 461 | public typealias RawValue = Swift.Int |
462 | } | 462 | } |
463 | -extension Blowfish { | ||
464 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
465 | -} | ||
466 | final public class Blowfish { | 463 | final public class Blowfish { |
467 | public enum Error : Swift.Error { | 464 | public enum Error : Swift.Error { |
468 | case dataPaddingRequired | 465 | case dataPaddingRequired |
@@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | @@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | ||
484 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 481 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
485 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 482 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
486 | } | 483 | } |
484 | +extension Blowfish { | ||
485 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
486 | +} | ||
487 | @_hasMissingDesignatedInitializers public class BusyPics { | 487 | @_hasMissingDesignatedInitializers public class BusyPics { |
488 | public static let `default`: hhVDoctorSDK.BusyPics | 488 | public static let `default`: hhVDoctorSDK.BusyPics |
489 | public func cacheImgs() | 489 | public func cacheImgs() |
@@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | @@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | ||
555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) | 555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) |
556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker | 556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker |
557 | } | 557 | } |
558 | -extension ChaCha20 { | ||
559 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
560 | -} | ||
561 | final public class ChaCha20 { | 558 | final public class ChaCha20 { |
562 | public enum Error : Swift.Error { | 559 | public enum Error : Swift.Error { |
563 | case invalidKeyOrInitializationVector | 560 | case invalidKeyOrInitializationVector |
@@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | @@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | ||
593 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 590 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
594 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 591 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
595 | } | 592 | } |
593 | +extension ChaCha20 { | ||
594 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
595 | +} | ||
596 | final public class Checksum { | 596 | final public class Checksum { |
597 | @usableFromInline | 597 | @usableFromInline |
598 | internal static let table32: [Swift.UInt32] | 598 | internal static let table32: [Swift.UInt32] |
@@ -1626,9 +1626,6 @@ public struct HKDF { | @@ -1626,9 +1626,6 @@ public struct HKDF { | ||
1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws | 1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws |
1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> | 1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> |
1628 | } | 1628 | } |
1629 | -extension HMAC { | ||
1630 | - convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1631 | -} | ||
1632 | final public class HMAC : hhVDoctorSDK.Authenticator { | 1629 | final public class HMAC : hhVDoctorSDK.Authenticator { |
1633 | public enum Error : Swift.Error { | 1630 | public enum Error : Swift.Error { |
1634 | case authenticateError | 1631 | case authenticateError |
@@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | @@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | ||
1651 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 1648 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
1652 | @objc deinit | 1649 | @objc deinit |
1653 | } | 1650 | } |
1651 | +extension HMAC { | ||
1652 | + convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1653 | +} | ||
1654 | extension FixedWidthInteger { | 1654 | extension FixedWidthInteger { |
1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { | 1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { |
1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) | 1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) |
@@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | @@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | ||
2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2722 | @objc deinit | 2722 | @objc deinit |
2723 | } | 2723 | } |
2724 | -extension Rabbit { | ||
2725 | - convenience public init(key: Swift.String) throws | ||
2726 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2727 | -} | ||
2728 | final public class Rabbit { | 2724 | final public class Rabbit { |
2729 | public enum Error : Swift.Error { | 2725 | public enum Error : Swift.Error { |
2730 | case invalidKeyOrInitializationVector | 2726 | case invalidKeyOrInitializationVector |
@@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | @@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | ||
2748 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2744 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2749 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2745 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2750 | } | 2746 | } |
2747 | +extension Rabbit { | ||
2748 | + convenience public init(key: Swift.String) throws | ||
2749 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2750 | +} | ||
2751 | public enum ReachabilityError : Swift.Error { | 2751 | public enum ReachabilityError : Swift.Error { |
2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) | 2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) |
2753 | case FailedToCreateWithHostname(Swift.String) | 2753 | case FailedToCreateWithHostname(Swift.String) |
@@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | @@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | ||
3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) | 3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) |
3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) | 3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) |
3356 | } | 3356 | } |
3357 | +extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3358 | + @objc dynamic public func onForceOffline() | ||
3359 | + @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3360 | + @objc dynamic public func onUserSigExpired() | ||
3361 | +} | ||
3357 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | 3362 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { |
3358 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) | 3363 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) |
3359 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) | 3364 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) |
@@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | @@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | ||
3361 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { | 3366 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { |
3362 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) | 3367 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) |
3363 | } | 3368 | } |
3364 | -extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3365 | - @objc dynamic public func onForceOffline() | ||
3366 | - @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3367 | - @objc dynamic public func onUserSigExpired() | ||
3368 | -} | ||
3369 | extension String { | 3369 | extension String { |
3370 | public func subFrom(_ index: Swift.Int) -> Swift.String | 3370 | public func subFrom(_ index: Swift.Int) -> Swift.String |
3371 | } | 3371 | } |
No preview for this file type
@@ -34,28 +34,6 @@ public protocol AEAD { | @@ -34,28 +34,6 @@ public protocol AEAD { | ||
34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) | 34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) |
35 | @objc deinit | 35 | @objc deinit |
36 | } | 36 | } |
37 | -extension AES { | ||
38 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
39 | -} | ||
40 | -extension AES : hhVDoctorSDK.Cryptors { | ||
41 | - @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
42 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
43 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
44 | - if worker is StreamModeWorker { | ||
45 | - return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
46 | - } | ||
47 | - return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
48 | - } | ||
49 | - @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
50 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
51 | - let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
52 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
53 | - if worker is StreamModeWorker { | ||
54 | - return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
55 | - } | ||
56 | - return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
57 | - } | ||
58 | -} | ||
59 | final public class AES { | 37 | final public class AES { |
60 | public enum Error : Swift.Error { | 38 | public enum Error : Swift.Error { |
61 | case invalidKeySize | 39 | case invalidKeySize |
@@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | @@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | ||
267 | return out | 245 | return out |
268 | } | 246 | } |
269 | } | 247 | } |
248 | +extension AES { | ||
249 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
250 | +} | ||
251 | +extension AES : hhVDoctorSDK.Cryptors { | ||
252 | + @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
253 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
254 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
255 | + if worker is StreamModeWorker { | ||
256 | + return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
257 | + } | ||
258 | + return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
259 | + } | ||
260 | + @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
261 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
262 | + let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
263 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
264 | + if worker is StreamModeWorker { | ||
265 | + return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
266 | + } | ||
267 | + return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
268 | + } | ||
269 | +} | ||
270 | extension Array { | 270 | extension Array { |
271 | @inlinable internal init(reserveCapacity: Swift.Int) { | 271 | @inlinable internal init(reserveCapacity: Swift.Int) { |
272 | self = Array<Element>() | 272 | self = Array<Element>() |
@@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | @@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | ||
460 | public typealias Element = hhVDoctorSDK.BlockModeOption | 460 | public typealias Element = hhVDoctorSDK.BlockModeOption |
461 | public typealias RawValue = Swift.Int | 461 | public typealias RawValue = Swift.Int |
462 | } | 462 | } |
463 | -extension Blowfish { | ||
464 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
465 | -} | ||
466 | final public class Blowfish { | 463 | final public class Blowfish { |
467 | public enum Error : Swift.Error { | 464 | public enum Error : Swift.Error { |
468 | case dataPaddingRequired | 465 | case dataPaddingRequired |
@@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | @@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | ||
484 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 481 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
485 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 482 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
486 | } | 483 | } |
484 | +extension Blowfish { | ||
485 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
486 | +} | ||
487 | @_hasMissingDesignatedInitializers public class BusyPics { | 487 | @_hasMissingDesignatedInitializers public class BusyPics { |
488 | public static let `default`: hhVDoctorSDK.BusyPics | 488 | public static let `default`: hhVDoctorSDK.BusyPics |
489 | public func cacheImgs() | 489 | public func cacheImgs() |
@@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | @@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | ||
555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) | 555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) |
556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker | 556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker |
557 | } | 557 | } |
558 | -extension ChaCha20 { | ||
559 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
560 | -} | ||
561 | final public class ChaCha20 { | 558 | final public class ChaCha20 { |
562 | public enum Error : Swift.Error { | 559 | public enum Error : Swift.Error { |
563 | case invalidKeyOrInitializationVector | 560 | case invalidKeyOrInitializationVector |
@@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | @@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | ||
593 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 590 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
594 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 591 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
595 | } | 592 | } |
593 | +extension ChaCha20 { | ||
594 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
595 | +} | ||
596 | final public class Checksum { | 596 | final public class Checksum { |
597 | @usableFromInline | 597 | @usableFromInline |
598 | internal static let table32: [Swift.UInt32] | 598 | internal static let table32: [Swift.UInt32] |
@@ -1626,9 +1626,6 @@ public struct HKDF { | @@ -1626,9 +1626,6 @@ public struct HKDF { | ||
1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws | 1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws |
1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> | 1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> |
1628 | } | 1628 | } |
1629 | -extension HMAC { | ||
1630 | - convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1631 | -} | ||
1632 | final public class HMAC : hhVDoctorSDK.Authenticator { | 1629 | final public class HMAC : hhVDoctorSDK.Authenticator { |
1633 | public enum Error : Swift.Error { | 1630 | public enum Error : Swift.Error { |
1634 | case authenticateError | 1631 | case authenticateError |
@@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | @@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | ||
1651 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 1648 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
1652 | @objc deinit | 1649 | @objc deinit |
1653 | } | 1650 | } |
1651 | +extension HMAC { | ||
1652 | + convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1653 | +} | ||
1654 | extension FixedWidthInteger { | 1654 | extension FixedWidthInteger { |
1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { | 1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { |
1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) | 1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) |
@@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | @@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | ||
2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2722 | @objc deinit | 2722 | @objc deinit |
2723 | } | 2723 | } |
2724 | -extension Rabbit { | ||
2725 | - convenience public init(key: Swift.String) throws | ||
2726 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2727 | -} | ||
2728 | final public class Rabbit { | 2724 | final public class Rabbit { |
2729 | public enum Error : Swift.Error { | 2725 | public enum Error : Swift.Error { |
2730 | case invalidKeyOrInitializationVector | 2726 | case invalidKeyOrInitializationVector |
@@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | @@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | ||
2748 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2744 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2749 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2745 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2750 | } | 2746 | } |
2747 | +extension Rabbit { | ||
2748 | + convenience public init(key: Swift.String) throws | ||
2749 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2750 | +} | ||
2751 | public enum ReachabilityError : Swift.Error { | 2751 | public enum ReachabilityError : Swift.Error { |
2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) | 2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) |
2753 | case FailedToCreateWithHostname(Swift.String) | 2753 | case FailedToCreateWithHostname(Swift.String) |
@@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | @@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | ||
3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) | 3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) |
3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) | 3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) |
3356 | } | 3356 | } |
3357 | +extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3358 | + @objc dynamic public func onForceOffline() | ||
3359 | + @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3360 | + @objc dynamic public func onUserSigExpired() | ||
3361 | +} | ||
3357 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | 3362 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { |
3358 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) | 3363 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) |
3359 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) | 3364 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) |
@@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | @@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | ||
3361 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { | 3366 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { |
3362 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) | 3367 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) |
3363 | } | 3368 | } |
3364 | -extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3365 | - @objc dynamic public func onForceOffline() | ||
3366 | - @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3367 | - @objc dynamic public func onUserSigExpired() | ||
3368 | -} | ||
3369 | extension String { | 3369 | extension String { |
3370 | public func subFrom(_ index: Swift.Int) -> Swift.String | 3370 | public func subFrom(_ index: Swift.Int) -> Swift.String |
3371 | } | 3371 | } |
No preview for this file type
@@ -34,28 +34,6 @@ public protocol AEAD { | @@ -34,28 +34,6 @@ public protocol AEAD { | ||
34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) | 34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) |
35 | @objc deinit | 35 | @objc deinit |
36 | } | 36 | } |
37 | -extension AES { | ||
38 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
39 | -} | ||
40 | -extension AES : hhVDoctorSDK.Cryptors { | ||
41 | - @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
42 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
43 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
44 | - if worker is StreamModeWorker { | ||
45 | - return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
46 | - } | ||
47 | - return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
48 | - } | ||
49 | - @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
50 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
51 | - let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
52 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
53 | - if worker is StreamModeWorker { | ||
54 | - return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
55 | - } | ||
56 | - return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
57 | - } | ||
58 | -} | ||
59 | final public class AES { | 37 | final public class AES { |
60 | public enum Error : Swift.Error { | 38 | public enum Error : Swift.Error { |
61 | case invalidKeySize | 39 | case invalidKeySize |
@@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | @@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | ||
267 | return out | 245 | return out |
268 | } | 246 | } |
269 | } | 247 | } |
248 | +extension AES { | ||
249 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
250 | +} | ||
251 | +extension AES : hhVDoctorSDK.Cryptors { | ||
252 | + @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
253 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
254 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
255 | + if worker is StreamModeWorker { | ||
256 | + return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
257 | + } | ||
258 | + return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
259 | + } | ||
260 | + @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
261 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
262 | + let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
263 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
264 | + if worker is StreamModeWorker { | ||
265 | + return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
266 | + } | ||
267 | + return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
268 | + } | ||
269 | +} | ||
270 | extension Array { | 270 | extension Array { |
271 | @inlinable internal init(reserveCapacity: Swift.Int) { | 271 | @inlinable internal init(reserveCapacity: Swift.Int) { |
272 | self = Array<Element>() | 272 | self = Array<Element>() |
@@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | @@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | ||
460 | public typealias Element = hhVDoctorSDK.BlockModeOption | 460 | public typealias Element = hhVDoctorSDK.BlockModeOption |
461 | public typealias RawValue = Swift.Int | 461 | public typealias RawValue = Swift.Int |
462 | } | 462 | } |
463 | -extension Blowfish { | ||
464 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
465 | -} | ||
466 | final public class Blowfish { | 463 | final public class Blowfish { |
467 | public enum Error : Swift.Error { | 464 | public enum Error : Swift.Error { |
468 | case dataPaddingRequired | 465 | case dataPaddingRequired |
@@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | @@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | ||
484 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 481 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
485 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 482 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
486 | } | 483 | } |
484 | +extension Blowfish { | ||
485 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
486 | +} | ||
487 | @_hasMissingDesignatedInitializers public class BusyPics { | 487 | @_hasMissingDesignatedInitializers public class BusyPics { |
488 | public static let `default`: hhVDoctorSDK.BusyPics | 488 | public static let `default`: hhVDoctorSDK.BusyPics |
489 | public func cacheImgs() | 489 | public func cacheImgs() |
@@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | @@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | ||
555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) | 555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) |
556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker | 556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker |
557 | } | 557 | } |
558 | -extension ChaCha20 { | ||
559 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
560 | -} | ||
561 | final public class ChaCha20 { | 558 | final public class ChaCha20 { |
562 | public enum Error : Swift.Error { | 559 | public enum Error : Swift.Error { |
563 | case invalidKeyOrInitializationVector | 560 | case invalidKeyOrInitializationVector |
@@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | @@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | ||
593 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 590 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
594 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 591 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
595 | } | 592 | } |
593 | +extension ChaCha20 { | ||
594 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
595 | +} | ||
596 | final public class Checksum { | 596 | final public class Checksum { |
597 | @usableFromInline | 597 | @usableFromInline |
598 | internal static let table32: [Swift.UInt32] | 598 | internal static let table32: [Swift.UInt32] |
@@ -1626,9 +1626,6 @@ public struct HKDF { | @@ -1626,9 +1626,6 @@ public struct HKDF { | ||
1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws | 1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws |
1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> | 1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> |
1628 | } | 1628 | } |
1629 | -extension HMAC { | ||
1630 | - convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1631 | -} | ||
1632 | final public class HMAC : hhVDoctorSDK.Authenticator { | 1629 | final public class HMAC : hhVDoctorSDK.Authenticator { |
1633 | public enum Error : Swift.Error { | 1630 | public enum Error : Swift.Error { |
1634 | case authenticateError | 1631 | case authenticateError |
@@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | @@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | ||
1651 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 1648 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
1652 | @objc deinit | 1649 | @objc deinit |
1653 | } | 1650 | } |
1651 | +extension HMAC { | ||
1652 | + convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1653 | +} | ||
1654 | extension FixedWidthInteger { | 1654 | extension FixedWidthInteger { |
1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { | 1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { |
1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) | 1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) |
@@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | @@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | ||
2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2722 | @objc deinit | 2722 | @objc deinit |
2723 | } | 2723 | } |
2724 | -extension Rabbit { | ||
2725 | - convenience public init(key: Swift.String) throws | ||
2726 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2727 | -} | ||
2728 | final public class Rabbit { | 2724 | final public class Rabbit { |
2729 | public enum Error : Swift.Error { | 2725 | public enum Error : Swift.Error { |
2730 | case invalidKeyOrInitializationVector | 2726 | case invalidKeyOrInitializationVector |
@@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | @@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | ||
2748 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2744 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2749 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2745 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2750 | } | 2746 | } |
2747 | +extension Rabbit { | ||
2748 | + convenience public init(key: Swift.String) throws | ||
2749 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2750 | +} | ||
2751 | public enum ReachabilityError : Swift.Error { | 2751 | public enum ReachabilityError : Swift.Error { |
2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) | 2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) |
2753 | case FailedToCreateWithHostname(Swift.String) | 2753 | case FailedToCreateWithHostname(Swift.String) |
@@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | @@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | ||
3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) | 3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) |
3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) | 3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) |
3356 | } | 3356 | } |
3357 | +extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3358 | + @objc dynamic public func onForceOffline() | ||
3359 | + @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3360 | + @objc dynamic public func onUserSigExpired() | ||
3361 | +} | ||
3357 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | 3362 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { |
3358 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) | 3363 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) |
3359 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) | 3364 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) |
@@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | @@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | ||
3361 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { | 3366 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { |
3362 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) | 3367 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) |
3363 | } | 3368 | } |
3364 | -extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3365 | - @objc dynamic public func onForceOffline() | ||
3366 | - @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3367 | - @objc dynamic public func onUserSigExpired() | ||
3368 | -} | ||
3369 | extension String { | 3369 | extension String { |
3370 | public func subFrom(_ index: Swift.Int) -> Swift.String | 3370 | public func subFrom(_ index: Swift.Int) -> Swift.String |
3371 | } | 3371 | } |
No preview for this file type
@@ -34,28 +34,6 @@ public protocol AEAD { | @@ -34,28 +34,6 @@ public protocol AEAD { | ||
34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) | 34 | public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, success: Swift.Bool) |
35 | @objc deinit | 35 | @objc deinit |
36 | } | 36 | } |
37 | -extension AES { | ||
38 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
39 | -} | ||
40 | -extension AES : hhVDoctorSDK.Cryptors { | ||
41 | - @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
42 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
43 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
44 | - if worker is StreamModeWorker { | ||
45 | - return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
46 | - } | ||
47 | - return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
48 | - } | ||
49 | - @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
50 | - let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
51 | - let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
52 | - let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
53 | - if worker is StreamModeWorker { | ||
54 | - return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
55 | - } | ||
56 | - return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
57 | - } | ||
58 | -} | ||
59 | final public class AES { | 37 | final public class AES { |
60 | public enum Error : Swift.Error { | 38 | public enum Error : Swift.Error { |
61 | case invalidKeySize | 39 | case invalidKeySize |
@@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | @@ -267,6 +245,28 @@ extension AES : hhVDoctorSDK.Cipher { | ||
267 | return out | 245 | return out |
268 | } | 246 | } |
269 | } | 247 | } |
248 | +extension AES { | ||
249 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
250 | +} | ||
251 | +extension AES : hhVDoctorSDK.Cryptors { | ||
252 | + @inlinable final public func makeEncryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
253 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
254 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: encrypt, encryptionOperation: encrypt) | ||
255 | + if worker is StreamModeWorker { | ||
256 | + return try StreamEncryptor(blockSize: blockSize, padding: padding, worker) | ||
257 | + } | ||
258 | + return try BlockEncryptor(blockSize: blockSize, padding: padding, worker) | ||
259 | + } | ||
260 | + @inlinable final public func makeDecryptor() throws -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable { | ||
261 | + let blockSize = blockMode.customBlockSize ?? AES.blockSize | ||
262 | + let cipherOperation: CipherOperationOnBlock = blockMode.options.contains(.useEncryptToDecrypt) == true ? encrypt : decrypt | ||
263 | + let worker = try blockMode.worker(blockSize: blockSize, cipherOperation: cipherOperation, encryptionOperation: encrypt) | ||
264 | + if worker is StreamModeWorker { | ||
265 | + return try StreamDecryptor(blockSize: blockSize, padding: padding, worker) | ||
266 | + } | ||
267 | + return try BlockDecryptor(blockSize: blockSize, padding: padding, worker) | ||
268 | + } | ||
269 | +} | ||
270 | extension Array { | 270 | extension Array { |
271 | @inlinable internal init(reserveCapacity: Swift.Int) { | 271 | @inlinable internal init(reserveCapacity: Swift.Int) { |
272 | self = Array<Element>() | 272 | self = Array<Element>() |
@@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | @@ -460,9 +460,6 @@ public struct BlockModeOption : Swift.OptionSet { | ||
460 | public typealias Element = hhVDoctorSDK.BlockModeOption | 460 | public typealias Element = hhVDoctorSDK.BlockModeOption |
461 | public typealias RawValue = Swift.Int | 461 | public typealias RawValue = Swift.Int |
462 | } | 462 | } |
463 | -extension Blowfish { | ||
464 | - convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
465 | -} | ||
466 | final public class Blowfish { | 463 | final public class Blowfish { |
467 | public enum Error : Swift.Error { | 464 | public enum Error : Swift.Error { |
468 | case dataPaddingRequired | 465 | case dataPaddingRequired |
@@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | @@ -484,6 +481,9 @@ extension Blowfish : hhVDoctorSDK.Cipher { | ||
484 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 481 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
485 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 482 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
486 | } | 483 | } |
484 | +extension Blowfish { | ||
485 | + convenience public init(key: Swift.String, iv: Swift.String, padding: hhVDoctorSDK.Padding = .pkcs7) throws | ||
486 | +} | ||
487 | @_hasMissingDesignatedInitializers public class BusyPics { | 487 | @_hasMissingDesignatedInitializers public class BusyPics { |
488 | public static let `default`: hhVDoctorSDK.BusyPics | 488 | public static let `default`: hhVDoctorSDK.BusyPics |
489 | public func cacheImgs() | 489 | public func cacheImgs() |
@@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | @@ -555,9 +555,6 @@ public struct CFB : hhVDoctorSDK.BlockMode { | ||
555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) | 555 | public init(iv: Swift.Array<Swift.UInt8>, segmentSize: hhVDoctorSDK.CFB.SegmentSize = .cfb128) |
556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker | 556 | public func worker(blockSize: Swift.Int, cipherOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock, encryptionOperation: @escaping hhVDoctorSDK.CipherOperationOnBlock) throws -> hhVDoctorSDK.CipherModeWorker |
557 | } | 557 | } |
558 | -extension ChaCha20 { | ||
559 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
560 | -} | ||
561 | final public class ChaCha20 { | 558 | final public class ChaCha20 { |
562 | public enum Error : Swift.Error { | 559 | public enum Error : Swift.Error { |
563 | case invalidKeyOrInitializationVector | 560 | case invalidKeyOrInitializationVector |
@@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | @@ -593,6 +590,9 @@ extension ChaCha20 : hhVDoctorSDK.Cryptors { | ||
593 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 590 | final public func makeEncryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
594 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable | 591 | final public func makeDecryptor() -> hhVDoctorSDK.Cryptor & hhVDoctorSDK.Updatable |
595 | } | 592 | } |
593 | +extension ChaCha20 { | ||
594 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
595 | +} | ||
596 | final public class Checksum { | 596 | final public class Checksum { |
597 | @usableFromInline | 597 | @usableFromInline |
598 | internal static let table32: [Swift.UInt32] | 598 | internal static let table32: [Swift.UInt32] |
@@ -1626,9 +1626,6 @@ public struct HKDF { | @@ -1626,9 +1626,6 @@ public struct HKDF { | ||
1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws | 1626 | public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: hhVDoctorSDK.HMAC.Variant = .sha256) throws |
1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> | 1627 | public func calculate() throws -> Swift.Array<Swift.UInt8> |
1628 | } | 1628 | } |
1629 | -extension HMAC { | ||
1630 | - convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1631 | -} | ||
1632 | final public class HMAC : hhVDoctorSDK.Authenticator { | 1629 | final public class HMAC : hhVDoctorSDK.Authenticator { |
1633 | public enum Error : Swift.Error { | 1630 | public enum Error : Swift.Error { |
1634 | case authenticateError | 1631 | case authenticateError |
@@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | @@ -1651,6 +1648,9 @@ final public class HMAC : hhVDoctorSDK.Authenticator { | ||
1651 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 1648 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
1652 | @objc deinit | 1649 | @objc deinit |
1653 | } | 1650 | } |
1651 | +extension HMAC { | ||
1652 | + convenience public init(key: Swift.String, variant: hhVDoctorSDK.HMAC.Variant = .md5) throws | ||
1653 | +} | ||
1654 | extension FixedWidthInteger { | 1654 | extension FixedWidthInteger { |
1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { | 1655 | @inlinable internal func bytes(totalBytes: Swift.Int = MemoryLayout<Self>.size) -> Swift.Array<Swift.UInt8> { |
1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) | 1656 | arrayOfBytes(value: self.littleEndian, length: totalBytes) |
@@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | @@ -2721,10 +2721,6 @@ final public class Poly1305 : hhVDoctorSDK.Authenticator { | ||
2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2721 | final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2722 | @objc deinit | 2722 | @objc deinit |
2723 | } | 2723 | } |
2724 | -extension Rabbit { | ||
2725 | - convenience public init(key: Swift.String) throws | ||
2726 | - convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2727 | -} | ||
2728 | final public class Rabbit { | 2724 | final public class Rabbit { |
2729 | public enum Error : Swift.Error { | 2725 | public enum Error : Swift.Error { |
2730 | case invalidKeyOrInitializationVector | 2726 | case invalidKeyOrInitializationVector |
@@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | @@ -2748,6 +2744,10 @@ extension Rabbit : hhVDoctorSDK.Cipher { | ||
2748 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2744 | final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2749 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> | 2745 | final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8> |
2750 | } | 2746 | } |
2747 | +extension Rabbit { | ||
2748 | + convenience public init(key: Swift.String) throws | ||
2749 | + convenience public init(key: Swift.String, iv: Swift.String) throws | ||
2750 | +} | ||
2751 | public enum ReachabilityError : Swift.Error { | 2751 | public enum ReachabilityError : Swift.Error { |
2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) | 2752 | case FailedToCreateWithAddress(Darwin.sockaddr_in) |
2753 | case FailedToCreateWithHostname(Swift.String) | 2753 | case FailedToCreateWithHostname(Swift.String) |
@@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | @@ -3354,6 +3354,11 @@ extension TRTCManager : ImSDK.TIMConnListener { | ||
3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) | 3354 | @objc dynamic public func onConnFailed(_ code: Swift.Int32, err: Swift.String!) |
3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) | 3355 | @objc dynamic public func onDisconnect(_ code: Swift.Int32, err: Swift.String!) |
3356 | } | 3356 | } |
3357 | +extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3358 | + @objc dynamic public func onForceOffline() | ||
3359 | + @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3360 | + @objc dynamic public func onUserSigExpired() | ||
3361 | +} | ||
3357 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | 3362 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { |
3358 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) | 3363 | @objc dynamic public func onEnterRoom(_ result: Swift.Int) |
3359 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) | 3364 | @objc dynamic public func onError(_ errCode: TXLiteAVSDK_TRTC.TXLiteAVError, errMsg: Swift.String?, extInfo: [Swift.AnyHashable : Any]?) |
@@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | @@ -3361,11 +3366,6 @@ extension TRTCManager : TXLiteAVSDK_TRTC.TRTCCloudDelegate { | ||
3361 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { | 3366 | extension TRTCManager : TXLiteAVSDK_TRTC.TRTCLogDelegate { |
3362 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) | 3367 | @objc dynamic public func onLog(_ log: Swift.String?, logLevel level: TXLiteAVSDK_TRTC.TRTCLogLevel, whichModule module: Swift.String?) |
3363 | } | 3368 | } |
3364 | -extension TRTCManager : ImSDK.TIMUserStatusListener { | ||
3365 | - @objc dynamic public func onForceOffline() | ||
3366 | - @objc dynamic public func onReConnFailed(_ code: Swift.Int32, err: Swift.String!) | ||
3367 | - @objc dynamic public func onUserSigExpired() | ||
3368 | -} | ||
3369 | extension String { | 3369 | extension String { |
3370 | public func subFrom(_ index: Swift.Int) -> Swift.String | 3370 | public func subFrom(_ index: Swift.Int) -> Swift.String |
3371 | } | 3371 | } |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.

869 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
-
Please register or login to post a comment