mirror of https://github.com/nucypher/pyUmbral.git
Improve docstrings a bit
parent
b2182c5f2c
commit
024944627e
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue