summaryrefslogtreecommitdiff
path: root/lib/crypto/riscv/poly1305.h
blob: 88f3df44e355ea008ce1b7a2673fea3177061b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * OpenSSL/Cryptogams accelerated Poly1305 transform for riscv
 *
 * Copyright (C) 2025 Institute of Software, CAS.
 */

asmlinkage void poly1305_block_init(struct poly1305_block_state *state,
				    const u8 raw_key[POLY1305_BLOCK_SIZE]);
asmlinkage void poly1305_blocks(struct poly1305_block_state *state,
				const u8 *src, u32 len, u32 hibit);
asmlinkage void poly1305_emit(const struct poly1305_state *state,
			      u8 digest[POLY1305_DIGEST_SIZE],
			      const u32 nonce[4]);