pubkey encryption fixed