Add generation of public and private key pair.