doing generic encrypt of a public key instance