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 322f5ff commit 67c7764Copy full SHA for 67c7764
tlslite/utils/ecc.py
@@ -16,7 +16,8 @@ def decodeX962Point(data, curve=ecdsa.NIST256p):
16
bytelength = getPointByteSize(curve)
17
xCoord = bytesToNumber(parser.getFixBytes(bytelength))
18
yCoord = bytesToNumber(parser.getFixBytes(bytelength))
19
- return ecdsa.ellipticcurve.Point(curve.curve, xCoord, yCoord)
+ assert curve.curve.contains_point(xCoord, yCoord)
20
+ return ecdsa.ellipticcurve.PointJacobi(curve.curve, xCoord, yCoord, 1)
21
22
def encodeX962Point(point):
23
"""Encode a point in X9.62 format"""
0 commit comments