Lines Matching +full:sha +full:- +full:512

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Common values for SHA-3 algorithms
14 #define SHA3_224_BLOCK_SIZE (200 - 2 * SHA3_224_DIGEST_SIZE)
18 #define SHA3_256_BLOCK_SIZE (200 - 2 * SHA3_256_DIGEST_SIZE)
22 #define SHA3_384_BLOCK_SIZE (200 - 2 * SHA3_384_DIGEST_SIZE)
25 #define SHA3_512_DIGEST_SIZE (512 / 8)
26 #define SHA3_512_BLOCK_SIZE (200 - 2 * SHA3_512_DIGEST_SIZE)
34 #define SHAKE128_BLOCK_SIZE (200 - 2 * SHAKE128_DEFAULT_SIZE)
36 #define SHAKE256_BLOCK_SIZE (200 - 2 * SHAKE256_DEFAULT_SIZE)
41 * State for the Keccak-f[1600] permutation: 25 64-bit words.
43 * We usually keep the state words as little-endian, to make absorbing and
45 * state as a byte array.) The state words are converted to native-endian only
46 * temporarily by implementations of the permutation that need native-endian
47 * words. Of course, that conversion is a no-op on little-endian machines.
58 /* Internal context, shared by the digests (SHA3-*) and the XOFs (SHAKE*) */
70 * struct sha3_ctx - Context for SHA3-224, SHA3-256, SHA3-384, or SHA3-512
78 * sha3_zeroize_ctx() - Zeroize a SHA-3 context
90 * struct shake_ctx - Context for SHAKE128 or SHAKE256
98 * shake_zeroize_ctx() - Zeroize a SHAKE context
109 * sha3_224_init() - Initialize a context for SHA3-224
112 * This begins a new SHA3-224 message digest computation.
125 * sha3_256_init() - Initialize a context for SHA3-256
128 * This begins a new SHA3-256 message digest computation.
141 * sha3_384_init() - Initialize a context for SHA3-384
144 * This begins a new SHA3-384 message digest computation.
157 * sha3_512_init() - Initialize a context for SHA3-512
160 * This begins a new SHA3-512 message digest computation.
173 * sha3_update() - Update a SHA-3 digest context with input data
178 * This can be called any number of times to add data to a SHA3-224, SHA3-256,
179 * SHA3-384, or SHA3-512 digest (depending on which init function was called).
186 __sha3_update(&ctx->ctx, in, in_len); in sha3_update()
190 * sha3_final() - Finish computing a SHA-3 message digest
192 * @out: (output) The resulting SHA3-224, SHA3-256, SHA3-384, or SHA3-512
203 * shake128_init() - Initialize a context for SHAKE128
206 * This begins a new SHAKE128 extendable-output function (XOF) computation.
218 * shake256_init() - Initialize a context for SHAKE256
221 * This begins a new SHAKE256 extendable-output function (XOF) computation.
233 * shake_update() - Update a SHAKE context with input data
246 __sha3_update(&ctx->ctx, in, in_len); in shake_update()
250 * shake_squeeze() - Generate output from SHAKE128 or SHAKE256
256 * end-to-end will yield the same output as one big squeeze generating the same
265 * sha3_224() - Compute SHA3-224 digest in one shot
270 * Convenience function that computes a SHA3-224 digest. Use this instead of
278 * sha3_256() - Compute SHA3-256 digest in one shot
283 * Convenience function that computes a SHA3-256 digest. Use this instead of
291 * sha3_384() - Compute SHA3-384 digest in one shot
296 * Convenience function that computes a SHA3-384 digest. Use this instead of
304 * sha3_512() - Compute SHA3-512 digest in one shot
309 * Convenience function that computes a SHA3-512 digest. Use this instead of
317 * shake128() - Compute SHAKE128 in one shot
332 * shake256() - Compute SHAKE256 in one shot