supporting generation of private key.