Added feature to generate ECC keypair.