Эх сурвалжийг харах

mark the Context class in ChaCha20 as final.

C.W. Betts 10 жил өмнө
parent
commit
c57e424c3e

+ 1 - 1
CryptoSwift/ChaCha20.swift

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