1 /*
2  * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 
8 #include "esp_sha_dma_priv.h"
9 
10 #include "soc/soc_caps.h"
11 #include "soc/crypto_dma_reg.h"
12 #include "hal/crypto_dma_ll.h"
13 
14 
esp_sha_dma_start(const lldesc_t * input)15 esp_err_t esp_sha_dma_start(const lldesc_t *input)
16 {
17     crypto_dma_ll_set_mode(CRYPTO_DMA_SHA);
18     crypto_dma_ll_reset();
19 
20     crypto_dma_ll_outlink_set((intptr_t)input);
21     crypto_dma_ll_outlink_start();
22 
23     return ESP_OK;
24 }
25