llvm/llvm/lib/Support/SHA256.cpp

//====- 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}
 */
//===----------------------------------------------------------------------===//

#include "llvm/Support/SHA256.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/SwapByteOrder.h"
#include <string.h>

namespace llvm {

#define SHR(x, c)
#define ROTR(x, n)

#define CH(x, y, z)
#define MAJ(x, y, z)

#define SIGMA_0(x)
#define SIGMA_1(x)

#define SIGMA_2(x)
#define SIGMA_3(x)

#define F_EXPAND(A, B, C, D, E, F, G, H, M1, M2, M3, M4, k)

void SHA256::init() {}

void SHA256::hashBlock() {}

void SHA256::addUncounted(uint8_t Data) {}

void SHA256::writebyte(uint8_t Data) {}

void SHA256::update(ArrayRef<uint8_t> Data) {}

void SHA256::update(StringRef Str) {}

void SHA256::pad() {}

void SHA256::final(std::array<uint32_t, HASH_LENGTH / 4> &HashResult) {}

std::array<uint8_t, 32> SHA256::final() {}

std::array<uint8_t, 32> SHA256::result() {}

std::array<uint8_t, 32> SHA256::hash(ArrayRef<uint8_t> Data) {}

} // namespace llvm