Hawkynt

SHA-512/224

SHA-512/224 is a truncated variant of SHA-512 with a modified initialization vector, producing 224-bit hash values. Defined in FIPS 180-4 for applications requiring smaller output than SHA-512.

Properties

Property Value
Category Hash Functions
Sub-category SHA-2 Family
Variant 512/224
Security status πŸ›‘οΈ Secure
Complexity Intermediate
Inventor NIST
Year 2012
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/hash/sha512.js

Parameters

Parameter Supported values
Output sizes 28 bytes (224 bits)

Security

Status: πŸ›‘οΈ Secure

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

4 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” FIPS 180-4 Test Vector - Empty String

Field Value
input (empty)
expected 6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4

Vector 2 β€” FIPS 180-4 Test Vector - Single β€˜a’

Field Value
input 61
expected d5cdb9ccc769a5121d4175f2bfdd13d6310e0d3d361ea75d82108327

Vector 3 β€” FIPS 180-4 Test Vector - β€˜abc’

Field Value
input 616263
expected 4634270f707b6a54daae7530460842e20e37ed265ceee9a43e8924aa

Vector 4 β€” FIPS 180-4 Test Vector - Long String

Field Value
input 61626364656667686263646566676869 636465666768696a6465666768696a6b 65666768696a6b6c666768696a6b6c6d 6768696a6b6c6d6e68696a6b6c6d6e6f 696a6b6c6d6e6f706a6b6c6d6e6f7071 6b6c6d6e6f7071726c6d6e6f70717273 6d6e6f70717273746e6f707172737475
expected 23fec5bb94d60b23308192640b0c453335d664734fe40e7268674af9

← All algorithms