Skip to content

Commit

Permalink
silence pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Oct 1, 2020
1 parent 22a651e commit 9f70b95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tlslite/utils/ecc.py
Expand Up @@ -24,8 +24,9 @@ def decodeX962Point(data, curve=ecdsa.NIST256p):
raise DecodeError("Zero as key share from peer")
if not curve.curve.contains_point(xCoord, yCoord):
raise DecodeError("Key share from peer is not a valid point on curve")
# pylint: disable=c-extension-no-member
return ecdsa.ellipticcurve.PointJacobi(curve.curve, xCoord, yCoord, 1)

# pylint: enable=c-extension-no-member

def encodeX962Point(point):
"""Encode a point in X9.62 format"""
Expand Down

0 comments on commit 9f70b95

Please sign in to comment.