We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5467e20 commit c0f8f5cCopy full SHA for c0f8f5c
src/pyelliptic/eccblind.py
@@ -150,7 +150,7 @@ def _ec_point_serialize(self, point):
150
# padding manually
151
bx = OpenSSL.malloc(0, OpenSSL.BN_num_bytes(x))
152
OpenSSL.BN_bn2bin(x, bx)
153
- out = bx.raw.rjust(l_, chr(0))
+ out = bx.raw.rjust(l_, chr(0).encode())
154
return pack(EC, y_byte, out)
155
156
finally:
@@ -180,7 +180,7 @@ def _bn_serialize(self, bn):
180
except AttributeError:
181
o = OpenSSL.malloc(0, OpenSSL.BN_num_bytes(bn))
182
OpenSSL.BN_bn2bin(bn, o)
183
- return o.raw.rjust(l_, chr(0))
+ return o.raw.rjust(l_, chr(0).encode())
184
185
def _bn_deserialize(self, data):
186
"""Make a BigNum out of string"""
0 commit comments