ec.c, catacomb/__init__.py: Return tail from `parse'; provide `fromstring'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 24 Nov 2019 22:50:56 +0000 (22:50 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:51:32 +0000 (17:51 +0000)
commit54f5bcf99ff1594cf2d65067061bf2e8a160bb23
treefa1c8ec4e9d46213f6bd0a13220bea2e35346894
parenta62ce0a69d9297706f0a44b72d999fea26f3ee20
ec.c, catacomb/__init__.py: Return tail from `parse'; provide `fromstring'.

`ECCurve.parse' was inconsistent with the established nomenclature.
Generally, `parse' reads a prefix of some given string, returning the
denoted value and the unprocessed remainder of the input string;
`fromstring' does the same, except that it returns only the value, and
raises an exception if the remainder of the string is not only
whitespace.

Fix `ECCurve.parse' (which unfortunately is an incompatible change), and
add missing `fromstring' methods to `ECCurve' and `ECInfo'.
catacomb/__init__.py
ec.c
t/t-ec.py