Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

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?

share|improve this question
    
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. –  Reid Dec 1 '13 at 3:40

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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