ec: remove unused X9.62 encoding functions
sec: use a hashtable for lookup
sec: use BigInteger.fromHex directly
sec: fix formatting
ecdsa: isolate tests from external dependencies