x86/cpu_entry_area: Add debugstore entries to cpu_entry_area
[linux/fpc-iii.git] / include / crypto / sha3.h
blobb9d9bd553b48b75950f678690186a77d6a90a99a
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Common values for SHA-3 algorithms
4 */
5 #ifndef __CRYPTO_SHA3_H__
6 #define __CRYPTO_SHA3_H__
8 #define SHA3_224_DIGEST_SIZE (224 / 8)
9 #define SHA3_224_BLOCK_SIZE (200 - 2 * SHA3_224_DIGEST_SIZE)
11 #define SHA3_256_DIGEST_SIZE (256 / 8)
12 #define SHA3_256_BLOCK_SIZE (200 - 2 * SHA3_256_DIGEST_SIZE)
14 #define SHA3_384_DIGEST_SIZE (384 / 8)
15 #define SHA3_384_BLOCK_SIZE (200 - 2 * SHA3_384_DIGEST_SIZE)
17 #define SHA3_512_DIGEST_SIZE (512 / 8)
18 #define SHA3_512_BLOCK_SIZE (200 - 2 * SHA3_512_DIGEST_SIZE)
20 struct sha3_state {
21 u64 st[25];
22 unsigned int md_len;
23 unsigned int rsiz;
24 unsigned int rsizw;
26 unsigned int partial;
27 u8 buf[SHA3_224_BLOCK_SIZE];
30 #endif