|
@@ -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
|