Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds SPM support #71

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Removes the now stray guard statement
mz2 committed Sep 5, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 02b7614efb66424a024dd3eddb2310a095643a43
4 changes: 1 addition & 3 deletions Source/AmazonS3RequestManager/AmazonS3SignatureHelpers.swift
Original file line number Diff line number Diff line change
@@ -81,8 +81,6 @@ func canonicalizedResource(from url: URL) -> String {

func base64EncodedHMACSHA1(key: String, payload: String) throws -> String {
let hmac = try HMAC(key: key, variant: .sha1)
guard let base64Encoded = try hmac.authenticate(payload.bytes).toBase64() else {
throw SigningError.nonBase64EncodableSignature
}
let base64Encoded = try hmac.authenticate(payload.bytes).toBase64()
return base64Encoded
}