IPA IP 2026 Question 91
A question IPA Japan published in 令和8年度 ITパスポート試験 公開問題 問91, translated into English. ITPEC is based on the same exams.
Hash functions that are used in digital signatures and blockchains include SHA-256 and SHA-512. Which of the following is an appropriate description concerning such hash functions?
Explanation
The same input always gives the same hash value — a hash function is deterministic and one-way.
A hash function such as SHA-256 maps data of any length to a value of fixed length (256 bits for SHA-256, 512 bits for SHA-512). Three properties matter here:
- •Deterministic: the same function applied to the same data always gives the same value. This is what lets a receiver recompute the digest of a signed message, or of the previous block in a blockchain, and compare it.
- •One-way: there is no practical way to get the data back from the value; feeding the value into the function again just gives another hash value.
- •Specific to the function: different functions give different values, even of different lengths.
Answer (c)
Why not others:
- •(a) — hashing a hash value gives a new hash value, not the original data; a hash function is not a cipher that undoes itself
- •(b) — SHA-256 and SHA-512 give values of different lengths (256 and 512 bits) for the same data, so their results cannot be the same
- •(d) — many inputs share each value, and no inverse function exists; being irreversible is the whole point of a cryptographic hash
Key rule: A cryptographic hash is deterministic, fixed-length and one-way: same input, same digest, and no way back from the digest to the data.
Security · AI-written, may contain errors
This question comes from the past questions IPA Japan publishes, translated into English by ITPEC Practice. ITPEC Practice is an independent study tool and is not affiliated with IPA or ITPEC. See the original paper (PDF) or Report an issue.