From 315a799ccc9c20fbc87d867e1f0ece9d79960285 Mon Sep 17 00:00:00 2001 From: Dmitry <45711841+darkdi@users.noreply.github.com> Date: Tue, 1 Sep 2026 00:00:33 +0300 Subject: [PATCH] Match the documented parameter names to the signatures (#463) --- Sources/CryptoExtras/AES/AES_GCM_SIV.swift | 2 -- Sources/CryptoExtras/ECToolbox/BoringSSL/ECToolbox_boring.swift | 2 +- Sources/CryptoExtras/RSA/RSA_boring.swift | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/CryptoExtras/AES/AES_GCM_SIV.swift b/Sources/CryptoExtras/AES/AES_GCM_SIV.swift index 33d0c7ed..7de1aee1 100644 --- a/Sources/CryptoExtras/AES/AES_GCM_SIV.swift +++ b/Sources/CryptoExtras/AES/AES_GCM_SIV.swift @@ -63,7 +63,6 @@ extension AES.GCM { /// - Parameters: /// - 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 /// - Returns: The ciphertext if opening was successful /// - Throws: CipherError errors. If the authentication of the sealed box failed, incorrectTag is thrown. @@ -77,7 +76,6 @@ extension AES.GCM { /// - Parameters: /// - 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(). /// - Returns: The ciphertext if opening was successful /// - 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 { diff --git a/Sources/CryptoExtras/ECToolbox/BoringSSL/ECToolbox_boring.swift b/Sources/CryptoExtras/ECToolbox/BoringSSL/ECToolbox_boring.swift index 36cb3d73..4bbd37ef 100644 --- a/Sources/CryptoExtras/ECToolbox/BoringSSL/ECToolbox_boring.swift +++ b/Sources/CryptoExtras/ECToolbox/BoringSSL/ECToolbox_boring.swift @@ -161,7 +161,7 @@ struct OpenSSLGroupScalar: GroupScalar, CustomStri /// Deserializes a scalar from data. /// - Parameters: - /// - data: The serialized scalar + /// - bytes: The serialized scalar /// - reductionIsModOrder: Resulting number is taken "mod q" (characteristic) by default. Override by setting true if "mod p" (order) is desired. /// - Returns: The deserialized scalar init(bytes: Data, reductionIsModOrder: Bool = false) throws { diff --git a/Sources/CryptoExtras/RSA/RSA_boring.swift b/Sources/CryptoExtras/RSA/RSA_boring.swift index 09155cb6..0b7ddeb0 100644 --- a/Sources/CryptoExtras/RSA/RSA_boring.swift +++ b/Sources/CryptoExtras/RSA/RSA_boring.swift @@ -260,7 +260,6 @@ extension BoringSSLRSAPublicKey { } } - fileprivate convenience init(derRepresentation: Bytes) throws { if derRepresentation.regions.count == 1 { try self.init(contiguousDerRepresentation: derRepresentation.regions.first!)