Implement PKCS#8 EC key loading. Lots of duplicated code. oops