瀏覽代碼

mark the Context class in ChaCha20 as final.

C.W. Betts 10 年之前
父節點
當前提交
c57e424c3e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {