diff --git a/Sources/Crypto/ASN1/Basic ASN1 Types/ASN1Integer.swift b/Sources/Crypto/ASN1/Basic ASN1 Types/ASN1Integer.swift index 3ef9cf60..513c96fa 100644 --- a/Sources/Crypto/ASN1/Basic ASN1 Types/ASN1Integer.swift +++ b/Sources/Crypto/ASN1/Basic ASN1 Types/ASN1Integer.swift @@ -16,8 +16,8 @@ #else import Foundation -/// A protocol that represents any internal object that can present itself as a INTEGER, or be parsed from -/// a INTEGER. +/// A protocol that represents any internal object that can present itself as an INTEGER, or be parsed from +/// an INTEGER. /// /// This is not a very good solution for a fully-fledged ASN.1 library: we'd rather have a better numerics /// protocol that could both initialize from and serialize to either bytes or words. However, no such diff --git a/Sources/Crypto/Key Agreement/DH.swift b/Sources/Crypto/Key Agreement/DH.swift index 70bd33fa..27e788b2 100644 --- a/Sources/Crypto/Key Agreement/DH.swift +++ b/Sources/Crypto/Key Agreement/DH.swift @@ -36,7 +36,7 @@ public protocol DiffieHellmanKeyAgreement { /// Generate a shared secret by calling your private key’s /// `sharedSecretFromKeyAgreement(publicKeyShare:)` method with the public key /// from another party. The other party computes the same secret by passing your -/// public key to the the equivalent method on their own private key. +/// public key to the equivalent method on their own private key. /// /// The shared secret isn’t suitable as a symmetric cryptographic key /// (``SymmetricKey``) by itself. However, you use it to generate a key by diff --git a/Sources/_CryptoExtras/AES/AES_GCM_SIV.swift b/Sources/_CryptoExtras/AES/AES_GCM_SIV.swift index 71600add..2c134b5a 100644 --- a/Sources/_CryptoExtras/AES/AES_GCM_SIV.swift +++ b/Sources/_CryptoExtras/AES/AES_GCM_SIV.swift @@ -58,9 +58,9 @@ extension AES.GCM { /// - sealedBox: The sealed box to authenticate and decrypt /// - key: An encryption key of 128 or 256 bits /// - nonce: An Nonce for AES-GCM-SIV encryption. The nonce must be unique for every use of the key to seal data. It can be safely generated with AES.GCM.Nonce(). - /// - authenticatedData: Data that was authenticated as part of the seal + /// - authenticatedData: Data that was authenticated as part of the seal /// - Returns: The ciphertext if opening was successful - /// - Throws: CipherError errors. If the authentication of the sealedbox failed, incorrectTag is thrown. + /// - Throws: CipherError errors. If the authentication of the sealed box failed, incorrectTag is thrown. public static func open (_ sealedBox: SealedBox, using key: SymmetricKey, authenticating authenticatedData: AuthenticatedData) throws -> Data { return try OpenSSLAESGCMSIVImpl.open(key: key, sealedBox: sealedBox, authenticatedData: authenticatedData) @@ -73,7 +73,7 @@ extension AES.GCM { /// - key: An encryption key of 128 or 256 bits /// - nonce: An Nonce for AES-GCM-SIV encryption. The nonce must be unique for every use of the key to seal data. It can be safely generated with AES.GCM.Nonce(). /// - Returns: The ciphertext if opening was successful - /// - Throws: CipherError errors. If the authentication of the sealedbox failed, incorrectTag is thrown. + /// - Throws: CipherError errors. If the authentication of the sealed box failed, incorrectTag is thrown. public static func open(_ sealedBox: SealedBox, using key: SymmetricKey) throws -> Data { return try OpenSSLAESGCMSIVImpl.open(key: key, sealedBox: sealedBox, authenticatedData: Data?.none) } diff --git a/Sources/_CryptoExtras/RSA/RSA.swift b/Sources/_CryptoExtras/RSA/RSA.swift index 1b573bf3..b134ff06 100644 --- a/Sources/_CryptoExtras/RSA/RSA.swift +++ b/Sources/_CryptoExtras/RSA/RSA.swift @@ -220,7 +220,7 @@ extension _RSA.Signing.PrivateKey { return try self.signature(for: SHA256.hash(data: data), padding: .PSS) } - /// Generates an RSA signature with the given key. + /// Generates an RSA signature with the given key. /// /// - Parameter digest: The digest to sign. /// - Parameter padding: The padding to use.