summaryrefslogtreecommitdiffstats
path: root/include/linux/sha256.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sha256.h')
-rw-r--r--include/linux/sha256.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/sha256.h b/include/linux/sha256.h
deleted file mode 100644
index 26972b9e92db..000000000000
--- a/include/linux/sha256.h
+++ /dev/null
@@ -1,28 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2014 Red Hat Inc.
4 *
5 * Author: Vivek Goyal <vgoyal@redhat.com>
6 */
7
8#ifndef SHA256_H
9#define SHA256_H
10
11#include <linux/types.h>
12#include <crypto/sha.h>
13
14/*
15 * Stand-alone implementation of the SHA256 algorithm. It is designed to
16 * have as little dependencies as possible so it can be used in the
17 * kexec_file purgatory. In other cases you should use the implementation in
18 * crypto/.
19 *
20 * For details see lib/sha256.c
21 */
22
23extern int sha256_init(struct sha256_state *sctx);
24extern int sha256_update(struct sha256_state *sctx, const u8 *input,
25 unsigned int length);
26extern int sha256_final(struct sha256_state *sctx, u8 *hash);
27
28#endif /* SHA256_H */