MCPcopy Create free account
hub / github.com/s3tools/s3cmd / getSignatureKey

Function getSignatureKey

S3/Crypto.py:190–199  ·  view source on GitHub ↗

Input: unicode params Output: bytes

(key, dateStamp, regionName, serviceName)

Source from the content-addressed store, hash-verified

188
189
190def getSignatureKey(key, dateStamp, regionName, serviceName):
191 """
192 Input: unicode params
193 Output: bytes
194 """
195 kDate = sign(encode_to_s3('AWS4' + key), dateStamp)
196 kRegion = sign(kDate, regionName)
197 kService = sign(kRegion, serviceName)
198 kSigning = sign(kService, 'aws4_request')
199 return kSigning
200
201
202def sign_request_v4(method='GET', host='', canonical_uri='/', params=None,

Callers 1

sign_request_v4Function · 0.85

Calls 2

signFunction · 0.85
encode_to_s3Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…