main
Bob Mottram 2021-11-18 14:04:45 +00:00
parent edd62c1f1b
commit d28bedad71
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ def signPostHeadersNew(dateStr: str, privateKeyPem: str,
hazutils.Prehashed(hashes.SHA512())) hazutils.Prehashed(hashes.SHA512()))
signature = base64.b64encode(rawSignature).decode('ascii') signature = base64.b64encode(rawSignature).decode('ascii')
else: else:
# default sha256 # default rsa-sha256
headerDigest = getSHA256(signedHeaderText.encode('ascii')) headerDigest = getSHA256(signedHeaderText.encode('ascii'))
rawSignature = key.sign(headerDigest, rawSignature = key.sign(headerDigest,
padding.PKCS1v15(), padding.PKCS1v15(),