You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
431 B

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2024 Rockchip Electronics Co., Ltd
*/
#ifndef _ROCKCHIP_CRYPTO_MPA_H_
#define _ROCKCHIP_CRYPTO_MPA_H_
#include <common.h>
#define MPA_USE_ALLOC 1
struct mpa_num {
u32 alloc;
s32 size;
u32 *d;
};
int rk_mpa_alloc(struct mpa_num **mpa, void *data, u32 word_size);
void rk_mpa_free(struct mpa_num **mpa);
int rk_check_size(u32 *data, u32 max_word_size);
#endif