Added ability to check if a private key matches that of a public key.