Explorar o código

mark the Context class in ChaCha20 as final.

C.W. Betts %!s(int64=10) %!d(string=hai) anos
pai
achega
c57e424c3e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CryptoSwift/ChaCha20.swift

+ 1 - 1
CryptoSwift/ChaCha20.swift

@@ -14,7 +14,7 @@ final public class ChaCha20 {
     private let stateSize = 16
     private var context:Context?
     
-    private class Context {
+    final private class Context {
         var input:[UInt32] = [UInt32](count: 16, repeatedValue: 0)
         
         deinit {