Improve docstrings a bit

pull/130/head
tuxxy 2018-04-24 17:02:23 -06:00
parent b2182c5f2c
commit 024944627e
2 changed files with 5 additions and 4 deletions

View File

@ -30,10 +30,10 @@ class CurveBN(object):
return get_curve_keysize_bytes(curve)
@classmethod
def gen_rand(cls, curve: ec.EllipticCurve = None):
def gen_rand(cls, curve: ec.EllipticCurve=None):
"""
Returns a CurveBN object with a cryptographically secure Bignum based
on the given curve.
Returns a CurveBN object with a cryptographically secure OpenSSL BIGNUM
based on the given curve.
"""
curve = curve if curve is not None else default_curve()
curve_nid = backend._elliptic_curve_to_nid(curve)

View File

@ -178,7 +178,8 @@ class CapsuleFrag(object):
@classmethod
def get_size(cls, curve: ec.EllipticCurve=None):
"""
Returns the size (in bytes) of a CapsuleFrag given the curve.
Returns the size (in bytes) of a CapsuleFrag given the curve without
the CorrectnessProof.
If no curve is provided, it will use the default curve.
"""
curve = curve if curve is not None else default_curve()