We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4bc21 commit 3c65fa8Copy full SHA for 3c65fa8
Sources/X509/CertificatePrivateKey.swift
@@ -91,6 +91,13 @@ extension Certificate {
91
}
92
#endif
93
94
+ /// Construct a private key wrapping a custom private key.
95
+ /// - Parameter custom: The custom private key to wrap.
96
+ @inlinable
97
+ public init(_ custom: some CustomPrivateKey) {
98
+ self.backing = .custom(custom)
99
+ }
100
+
101
/// Use the private key to sign the provided bytes with a given signature algorithm.
102
///
103
/// - Parameters:
0 commit comments