Skip to main content

RFC 6234 - US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)

Published: May 2011
Status: Informational
Authors: D. Eastlake 3rd (Huawei), T. Hansen (AT&T Labs)
Obsoletes: RFC 4634
Updates: RFC 3174


Abstract

The United States of America has adopted a suite of Secure Hash Algorithms (SHAs), including four beyond SHA-1, as part of a Federal Information Processing Standard (FIPS), namely SHA-224, SHA-256, SHA-384, and SHA-512. This document makes open source code performing these SHA hash functions conveniently available to the Internet community. The sample code supports input strings of arbitrary bit length. Much of the text herein was adapted by the authors from FIPS 180-2.

This document replaces RFC 4634, fixing errata and adding code for an HMAC-based extract-and-expand Key Derivation Function, HKDF (RFC 5869). As with RFC 4634, code to perform SHA-based Hashed Message Authentication Codes (HMACs) is also included.


Contents

Appendix