Signatures need to use UTF-8 in order to represent all URLs (#633)
This commit is contained in:
parent
70b9e3b900
commit
2a50928f27
|
@ -140,7 +140,7 @@ class HttpSignature:
|
||||||
try:
|
try:
|
||||||
public_key_instance.verify(
|
public_key_instance.verify(
|
||||||
signature,
|
signature,
|
||||||
cleartext.encode("ascii"),
|
cleartext.encode("utf8"),
|
||||||
padding.PKCS1v15(),
|
padding.PKCS1v15(),
|
||||||
hashes.SHA256(),
|
hashes.SHA256(),
|
||||||
)
|
)
|
||||||
|
@ -229,7 +229,7 @@ class HttpSignature:
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
signature = private_key_instance.sign(
|
signature = private_key_instance.sign(
|
||||||
signed_string.encode("ascii"),
|
signed_string.encode("utf8"),
|
||||||
padding.PKCS1v15(),
|
padding.PKCS1v15(),
|
||||||
hashes.SHA256(),
|
hashes.SHA256(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue