feat: enable RSA support for c5 mp version

This commit enables RSA peripheral support for ESP32-C5 MP version.
This commit is contained in:
nilesh.kale
2024-05-09 15:49:55 +05:30
parent 8508c85551
commit 92fdaea83a
4 changed files with 41 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
/*
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "soc/rsa_reg.h"
#include "soc/mpi_periph.h"
const uint32_t MPI_BLOCK_BASES[SOC_MPI_MEM_BLOCKS_NUM] = {
RSA_X_MEM,
RSA_Y_MEM,
RSA_Z_MEM,
RSA_M_MEM,
};
const uint32_t MPI_OPERATIONS_REG[SOC_MPI_OPERATIONS_NUM] = {
RSA_SET_START_MULT_REG,
RSA_SET_START_MODMULT_REG,
RSA_SET_START_MODEXP_REG,
};