Add function to compute digest of RSA public/private key DER form