chromium/third_party/pdfium/core/fdrm/fx_crypt_sha.cpp

// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "core/fdrm/fx_crypt_sha.h"

#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_memcpy_wrappers.h"
#include "core/fxcrt/stl_util.h"

#define SHA_GET_UINT32(n, b, i)

#define SHA_PUT_UINT32(n, b, i)

#define SHA_GET_UINT64(n, b, i)

#define SHA_PUT_UINT64(n, b, i)

#define SHA384_F0(x, y, z)
#define SHA384_F1(x, y, z)
#define SHA384_SHR(x, n)
#define SHA384_ROTR(x, n)
#define SHA384_S0(x)
#define SHA384_S1(x)
#define SHA384_S2(x)
#define SHA384_S3(x)
#define SHA384_P(a, b, c, d, e, f, g, h, x, K)
#define SHA384_R(t)

#define rol(x, y)
#define SHR(x, n)
#define ROTR(x, n)
#define S0(x)
#define S1(x)
#define S2(x)
#define S3(x)
#define F0(x, y, z)
#define F1(x, y, z)
#define R(t)
#define PS(a, b, c, d, e, f, g, h, x, K)

namespace {

void SHA_Core_Init(pdfium::span<uint32_t, 5> h) {}

void SHATransform(pdfium::span<uint32_t> digest, pdfium::span<uint32_t> block) {}

void sha256_process(CRYPT_sha2_context* ctx,
                    pdfium::span<const uint8_t, 64> data) {}

const uint8_t kSha256Padding[64] =;

const uint8_t kSha384Padding[128] =;

constexpr auto constants =;

void sha384_process(CRYPT_sha2_context* ctx,
                    pdfium::span<const uint8_t, 128> data) {}

}  // namespace

void CRYPT_SHA1Start(CRYPT_sha1_context* context) {}

void CRYPT_SHA1Update(CRYPT_sha1_context* context,
                      pdfium::span<const uint8_t> data) {}

void CRYPT_SHA1Finish(CRYPT_sha1_context* context,
                      pdfium::span<uint8_t, 20> digest) {}

DataVector<uint8_t> CRYPT_SHA1Generate(pdfium::span<const uint8_t> data) {}

void CRYPT_SHA256Start(CRYPT_sha2_context* context) {}

void CRYPT_SHA256Update(CRYPT_sha2_context* context,
                        pdfium::span<const uint8_t> data) {}

void CRYPT_SHA256Finish(CRYPT_sha2_context* context,
                        pdfium::span<uint8_t, 32> digest) {}

DataVector<uint8_t> CRYPT_SHA256Generate(pdfium::span<const uint8_t> data) {}

void CRYPT_SHA384Start(CRYPT_sha2_context* context) {}

void CRYPT_SHA384Update(CRYPT_sha2_context* context,
                        pdfium::span<const uint8_t> data) {}

void CRYPT_SHA384Finish(CRYPT_sha2_context* context,
                        pdfium::span<uint8_t, 48> digest) {}

DataVector<uint8_t> CRYPT_SHA384Generate(pdfium::span<const uint8_t> data) {}

void CRYPT_SHA512Start(CRYPT_sha2_context* context) {}

void CRYPT_SHA512Update(CRYPT_sha2_context* context,
                        pdfium::span<const uint8_t> data) {}

void CRYPT_SHA512Finish(CRYPT_sha2_context* context,
                        pdfium::span<uint8_t, 64> digest) {}

DataVector<uint8_t> CRYPT_SHA512Generate(pdfium::span<const uint8_t> data) {}