From f23814977517a107b525157bec88ef61060a88b9 Mon Sep 17 00:00:00 2001 From: Hoang Date: Fri, 6 Oct 2023 10:19:18 +0700 Subject: [PATCH] Update BigInt.swift --- SwiftTLS/Sources/Crypto/BigInt.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SwiftTLS/Sources/Crypto/BigInt.swift b/SwiftTLS/Sources/Crypto/BigInt.swift index 3463ce4..c797515 100644 --- a/SwiftTLS/Sources/Crypto/BigInt.swift +++ b/SwiftTLS/Sources/Crypto/BigInt.swift @@ -622,9 +622,6 @@ extension BigIntStorage : Collection { } } -extension BigIntStorage : MutableCollection { -} - extension BigIntStorage : RandomAccessCollection { } @@ -694,7 +691,7 @@ public struct BigInt { let targetCount = (number.count * MemoryLayout.size + MemoryLayout.size - 1) / MemoryLayout.size var target = BigIntStorage(capacity: targetCount) - try! BigInt.convert(from: number, to: &target) +// try! BigInt.convert(from: number, to: &target) self.init(storage: target, sign: negative) }