Browse Source

chore: fix some typos in comment

Signed-off-by: sunxunle <sunxunle@ampere.tech>
sunxunle 1 năm trước cách đây
mục cha
commit
03d3470ec3

+ 1 - 1
Sources/CryptoSwift/BlockMode/GCM.swift

@@ -128,7 +128,7 @@ final class GCMModeWorker: BlockModeWorker, FinalizingEncryptModeWorker, Finaliz
       self.additionalBufferSize = 0
     }
 
-    // Assume nonce is 12 bytes long, otherwise initial counter would be calulated from GHASH
+    // Assume nonce is 12 bytes long, otherwise initial counter would be calculated from GHASH
     // counter = GF.ghash(aad: [UInt8](), ciphertext: nonce)
     if iv.count == GCMModeWorker.nonceSize {
       self.counter = makeCounter(nonce: Array(self.iv))

+ 1 - 1
Sources/CryptoSwift/CS_BigInt/BigInt.swift

@@ -10,7 +10,7 @@
 
 extension CS {
 
-  /// An arbitary precision signed integer type, also known as a "big integer".
+  /// An arbitrary precision signed integer type, also known as a "big integer".
   ///
   /// Operations on big integers never overflow, but they might take a long time to execute.
   /// The amount of memory (and address space) available is the only constraint to the magnitude of these numbers.

+ 1 - 1
Sources/CryptoSwift/CS_BigInt/BigUInt.swift

@@ -8,7 +8,7 @@
 
 extension CS {
 
-  /// An arbitary precision unsigned integer type, also known as a "big integer".
+  /// An arbitrary precision unsigned integer type, also known as a "big integer".
   ///
   /// Operations on big integers never overflow, but they may take a long time to execute.
   /// The amount of memory (and address space) available is the only constraint to the magnitude of these numbers.