Hawkynt

SHA-512/256

SHA-512/256 is a truncated variant of SHA-512 with a modified initialization vector, producing 256-bit hash values. Defined in FIPS 180-4 for applications requiring 256-bit security with SHA-512 performance characteristics.

Properties

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

Parameters

Parameter Supported values
Output sizes 32 bytes (256 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 c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a

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

Field Value
input 61
expected 455e518824bc0601f9fb858ff5c37d417d67c2f8e0df2babe4808858aea830f8

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

Field Value
input 616263
expected 53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23

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

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

← All algorithms