Key generation, private key export, PKCS8 tests, improved key interface.