//====- SHA256.cpp - SHA256 implementation ---*- C++ -* ======// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /* * The SHA-256 Secure Hash Standard was published by NIST in 2002. * * http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf * * The implementation is based on nacl's sha256 implementation [0] and LLVM's * pre-exsiting SHA1 code [1]. * * [0] https://hyperelliptic.org/nacl/nacl-20110221.tar.bz2 (public domain * code) * [1] llvm/lib/Support/SHA1.{h,cpp} */ //===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SHA256_H #define LLVM_SUPPORT_SHA256_H #include <array> #include <cstdint> namespace llvm { template <typename T> class ArrayRef; class StringRef; class SHA256 { … }; } // namespace llvm #endif // LLVM_SUPPORT_SHA256_H