feat(mbedtls): Support both SHA block and DMA modes during runtime

Dynamically switch the SHA operation modes based on the buffer operating length
This commit is contained in:
harshal.patil
2025-01-24 16:26:47 +05:30
parent 2e708d1a7d
commit 7d8211bf87
28 changed files with 458 additions and 1271 deletions

View File

@@ -1,19 +1,11 @@
// Copyright 2019-2020 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*
* SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "sha/sha_dma.h"
#include "sha/sha_core.h"
#warning esp32s2/sha.h is deprecated, please use sha/sha_dma.h instead
#warning esp32s2/sha.h is deprecated, please use sha/sha_core.h instead