2
$\begingroup$

Would exposing a cryptographic hash function's digest (e.g. SHA-3) of RSA private key data compromise the key? If so, what are the possible (cryptanalysis-) vectors for attacking the key if an attacker had knowledge of this hash?

$\endgroup$
1
  • $\begingroup$ Why are you wanting to do this, exactly? Offhand I cannot think of any real issues, but I suspect whatever you're using the digest for, there's probably a better way involving the public key. $\endgroup$
    – Reid
    Dec 1, 2013 at 3:40

2 Answers 2

2
$\begingroup$

No, exposing such a hash does not compromise the RSA private key, unless the hash function is sufficiently and severely broken.

Of course, you don't need to hash the private exponent to identify the key. You can simply use the modulus or a hash over the (public) modulus to identify the key. This has the additional advantage that that ID will also match the public key. This is common practice, e.g. in the PKCS#11 standard for secure tokens.

You could use a hash over the private key as a proof of possession, but that has the disadvantage that the requester needs to have the private key and/or hash in advance. This is normally solved requesting an RSA (sign or decrypt) operation instead. I've never seen a hash over the private exponent being used as proof of possession.

$\endgroup$
5
$\begingroup$

This does not compromise the private key as long as the hash function is preimage resistant, i.e. given $H(M)$ it is hard to find $M$ (or any $M'$ giving the same $H(M)$). SHA-3 is assumed to be preimage resistant.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.