Overview
SHA-256 processes message blocks through a compression function to produce a 256-bit digest. Small input changes are designed to produce unpredictable digest changes.
Computes a fixed 256-bit cryptographic hash of an input message.
Compact metadata for implementation and discovery.
SHA-256 processes message blocks through a compression function to produce a 256-bit digest. Small input changes are designed to produce unpredictable digest changes.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(1)
T1 = h + Sigma1(e) + Ch(e, f, g) + K[t] + W[t]Combines state words, constants, and message schedule data in each compression round.
Show message blocks updating a fixed-size hash state.
SHA-256 is not encryption; it is a one-way digest function.
What each reference supports for this entry.
NIST Secure Hash Standard reference for SHA-256 and related SHA-2 hash algorithms.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Cryptography · Extended
Both are cryptographic hash functions with different designs.
Compare with thisCryptography · Core
Fiat-Shamir-style constructions use transcript hashing to derive verifier challenges.
Compare with thisCryptography · Core
Hash-DRBG can be instantiated with SHA-family hash functions.
Compare with thisCryptography · Core
HMAC can be instantiated with SHA-256 as its underlying hash.
Compare with thisBoth are cryptographic hash functions with different designs.
SHA-256 follows a Merkle-Damgard-style compression construction.