linux/crypto/sha1_generic.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Cryptographic API.
 *
 * SHA1 Secure Hash Algorithm.
 *
 * Derived from cryptoapi implementation, adapted for in-place
 * scatterlist interface.
 *
 * Copyright (c) Alan Smithee.
 * Copyright (c) Andrew McDonald <[email protected]>
 * Copyright (c) Jean-Francois Dive <[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/sha1.h>
#include <crypto/sha1_base.h>
#include <asm/byteorder.h>

const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE] =;
EXPORT_SYMBOL_GPL();

static void sha1_generic_block_fn(struct sha1_state *sst, u8 const *src,
				  int blocks)
{}

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

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

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

static struct shash_alg alg =;

static int __init sha1_generic_mod_init(void)
{}

static void __exit sha1_generic_mod_fini(void)
{}

subsys_initcall(sha1_generic_mod_init);
module_exit(sha1_generic_mod_fini);

MODULE_LICENSE();
MODULE_DESCRIPTION();

MODULE_ALIAS_CRYPTO();
MODULE_ALIAS_CRYPTO();