xref: /linux/lib/crypto/riscv/poly1305.h (revision d8768fb12a14c30436bd0466b4fc28edeef45078)
1*bef9c755SZhihang Shao /* SPDX-License-Identifier: GPL-2.0-only */
2*bef9c755SZhihang Shao /*
3*bef9c755SZhihang Shao  * OpenSSL/Cryptogams accelerated Poly1305 transform for riscv
4*bef9c755SZhihang Shao  *
5*bef9c755SZhihang Shao  * Copyright (C) 2025 Institute of Software, CAS.
6*bef9c755SZhihang Shao  */
7*bef9c755SZhihang Shao 
8*bef9c755SZhihang Shao asmlinkage void poly1305_block_init(struct poly1305_block_state *state,
9*bef9c755SZhihang Shao 				    const u8 raw_key[POLY1305_BLOCK_SIZE]);
10*bef9c755SZhihang Shao asmlinkage void poly1305_blocks(struct poly1305_block_state *state,
11*bef9c755SZhihang Shao 				const u8 *src, u32 len, u32 hibit);
12*bef9c755SZhihang Shao asmlinkage void poly1305_emit(const struct poly1305_state *state,
13*bef9c755SZhihang Shao 			      u8 digest[POLY1305_DIGEST_SIZE],
14*bef9c755SZhihang Shao 			      const u32 nonce[4]);
15