Semen Zhydenko 8 лет назад
Родитель
Сommit
46cfb548f8
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Sources/CryptoSwift/AES.Cryptors.swift
  2. 1 1
      Sources/CryptoSwift/ChaCha20.swift

+ 1 - 1
Sources/CryptoSwift/AES.Cryptors.swift

@@ -90,7 +90,7 @@ extension AES {
         }
 
         public mutating func update(withBytes bytes: ArraySlice<UInt8>, isLast: Bool = false) throws -> Array<UInt8> {
-            // prepend "offset" number of bytes at the begining
+            // prepend "offset" number of bytes at the beginning
             if offset > 0 {
                 accumulated += Array<UInt8>(repeating: 0, count: offset) + bytes
                 offsetToRemove = offset

+ 1 - 1
Sources/CryptoSwift/ChaCha20.swift

@@ -293,7 +293,7 @@ extension ChaCha20 {
         }
 
         public mutating func update(withBytes bytes: ArraySlice<UInt8>, isLast: Bool = true) throws -> Array<UInt8> {
-            // prepend "offset" number of bytes at the begining
+            // prepend "offset" number of bytes at the beginning
             if offset > 0 {
                 accumulated += Array<UInt8>(repeating: 0, count: offset) + bytes
                 offsetToRemove = offset