diff --git a/Sources/CryptoSwift/AES.swift b/Sources/CryptoSwift/AES.swift index f1c5fe6d..e9ddb177 100644 --- a/Sources/CryptoSwift/AES.swift +++ b/Sources/CryptoSwift/AES.swift @@ -251,7 +251,7 @@ public final class AES: BlockCipher { let rounds = self.variantNr let rk = self.expandedKeyInv - // Save miliseconds by not using `block.toUInt32Array()` + // Save milliseconds by not using `block.toUInt32Array()` let b00 = UInt32(block[block.startIndex.advanced(by: 0)]) let b01 = UInt32(block[block.startIndex.advanced(by: 1)]) << 8 let b02 = UInt32(block[block.startIndex.advanced(by: 2)]) << 16 diff --git a/Sources/CryptoSwift/ASN1/ASN1.swift b/Sources/CryptoSwift/ASN1/ASN1.swift index e1e289af..a865ddd7 100644 --- a/Sources/CryptoSwift/ASN1/ASN1.swift +++ b/Sources/CryptoSwift/ASN1/ASN1.swift @@ -48,7 +48,7 @@ enum ASN1 { /// An array of more `ASN1.Node`s case sequence(nodes: [Node]) /// An integer - /// - Note: This ASN1 Encoder makes no assumptions about the sign and bit order of the integers passed in. The conversion from Integer to Data is your responsiblity. + /// - Note: This ASN1 Encoder makes no assumptions about the sign and bit order of the integers passed in. The conversion from Integer to Data is your responsibility. case integer(data: Data) /// An objectIdentifier case objectIdentifier(data: Data) diff --git a/Sources/CryptoSwift/CMAC.swift b/Sources/CryptoSwift/CMAC.swift index 8cdb9b32..c0fc2273 100644 --- a/Sources/CryptoSwift/CMAC.swift +++ b/Sources/CryptoSwift/CMAC.swift @@ -86,7 +86,7 @@ public class CMAC: Authenticator { // MARK: Helper methods /** - Performs left shift by one bit to the bit string aquired after concatenating al bytes in the byte array + Performs left shift by one bit to the bit string acquired after concatenating al bytes in the byte array - parameters: - bytes: byte array - returns: bit shifted bit string split again in array of bytes diff --git a/Sources/CryptoSwift/StreamDecryptor.swift b/Sources/CryptoSwift/StreamDecryptor.swift index 51171cf0..125710a8 100644 --- a/Sources/CryptoSwift/StreamDecryptor.swift +++ b/Sources/CryptoSwift/StreamDecryptor.swift @@ -66,7 +66,7 @@ final class StreamDecryptor: Cryptor, Updatable { plaintext = Array(try finalizingWorker.didDecryptLast(bytes: plaintext.slice)) } - // omit unecessary calculation if not needed + // omit unnecessary calculation if not needed if self.padding != .noPadding { self.lastBlockRemainder = plaintext.count.quotientAndRemainder(dividingBy: self.blockSize).remainder } diff --git a/Sources/CryptoSwift/StreamEncryptor.swift b/Sources/CryptoSwift/StreamEncryptor.swift index 503f3c15..15e68385 100644 --- a/Sources/CryptoSwift/StreamEncryptor.swift +++ b/Sources/CryptoSwift/StreamEncryptor.swift @@ -54,7 +54,7 @@ final class StreamEncryptor: Cryptor, Updatable { encrypted += self.worker.encrypt(block: chunk) } - // omit unecessary calculation if not needed + // omit unnecessary calculation if not needed if self.padding != .noPadding { self.lastBlockRemainder = encrypted.count.quotientAndRemainder(dividingBy: self.blockSize).remainder }