Skip to content

Commit e0848c5

Browse files
committed
Make signature method of PassBuilder public
1 parent fd0a448 commit e0848c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/Passes/PassBuilder.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ public struct PassBuilder: Sendable {
5252
return try encoder.encode(manifest)
5353
}
5454

55-
private func signature(for manifest: Data) throws -> Data {
55+
/// Generates a signature for a given manifest or personalization token.
56+
///
57+
/// - Parameter manifest: The manifest or personalization token data to sign.
58+
///
59+
/// - Returns: The generated signature as `Data`.
60+
public func signature(for manifest: Data) throws -> Data {
5661
// Swift Crypto doesn't support encrypted PEM private keys, so we have to use OpenSSL for that.
5762
if let pemPrivateKeyPassword {
5863
guard FileManager.default.fileExists(atPath: self.openSSLURL.path) else {

0 commit comments

Comments
 (0)