linux/crypto/sha256_generic.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Crypto API wrapper for the generic SHA256 code from lib/crypto/sha256.c
 *
 * Copyright (c) Jean-Luc Cooke <[email protected]>
 * Copyright (c) Andrew McDonald <[email protected]>
 * Copyright (c) 2002 James Morris <[email protected]>
 * SHA224 Support Copyright 2007 Intel Corporation <[email protected]>
 */
#include <crypto/internal/hash.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/types.h>
#include <crypto/sha2.h>
#include <crypto/sha256_base.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>

const u8 sha224_zero_message_hash[SHA224_DIGEST_SIZE] =;
EXPORT_SYMBOL_GPL();

const u8 sha256_zero_message_hash[SHA256_DIGEST_SIZE] =;
EXPORT_SYMBOL_GPL();

int crypto_sha256_update(struct shash_desc *desc, const u8 *data,
			  unsigned int len)
{}
EXPORT_SYMBOL();

static int crypto_sha256_final(struct shash_desc *desc, u8 *out)
{}

int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
			unsigned int len, u8 *hash)
{}
EXPORT_SYMBOL();

static struct shash_alg sha256_algs[2] =;

static int __init sha256_generic_mod_init(void)
{}

static void __exit sha256_generic_mod_fini(void)
{}

subsys_initcall(sha256_generic_mod_init);
module_exit(sha256_generic_mod_fini);

MODULE_LICENSE();
MODULE_DESCRIPTION();

MODULE_ALIAS_CRYPTO();
MODULE_ALIAS_CRYPTO();
MODULE_ALIAS_CRYPTO();
MODULE_ALIAS_CRYPTO();