xref: /linux/lib/crypto/mips/chacha.h (revision d8768fb12a14c30436bd0466b4fc28edeef45078)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * ChaCha and HChaCha functions (MIPS optimized)
4  *
5  * Copyright (C) 2019 Linaro, Ltd. <ard.biesheuvel@linaro.org>
6  */
7 
8 #include <linux/kernel.h>
9 
10 asmlinkage void chacha_crypt_arch(struct chacha_state *state,
11 				  u8 *dst, const u8 *src,
12 				  unsigned int bytes, int nrounds);
13 asmlinkage void hchacha_block_arch(const struct chacha_state *state,
14 				   u32 out[HCHACHA_OUT_WORDS], int nrounds);
15