Skip to content

Commit d93e3d9

Browse files
committed
Use DataProtocol generic for DER initializer
1 parent e271765 commit d93e3d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/SotoSignerCloudFront/CloudFrontSigner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public struct CloudFrontSigner: Sendable {
123123
/// - keyPairId: The CloudFront key pair ID (e.g., "K2JCJMDEHXQW5F")
124124
/// - privateKeyDER: DER-encoded RSA private key
125125
/// - hashAlgorithm: Hash algorithm to use (defaults to `.sha1`)
126-
public init(keyPairId: String, privateKeyDER: Data, hashAlgorithm: HashAlgorithm = .sha1) throws {
126+
public init<Bytes: DataProtocol>(keyPairId: String, privateKeyDER: Bytes, hashAlgorithm: HashAlgorithm = .sha1) throws {
127127
self.keyPairId = keyPairId
128128
self.hashAlgorithm = hashAlgorithm
129129
do {

0 commit comments

Comments
 (0)