mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-22 17:02:25 +00:00
mbedtls: Use hardware accelerated AES, SHA, bignum
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* copyright (c) 2010 - 2012 Espressif System
|
||||
*
|
||||
* esf Link List Descriptor
|
||||
*/
|
||||
|
||||
#ifndef _SHA256_ALT_H_
|
||||
@@ -13,9 +12,9 @@ extern "C" {
|
||||
|
||||
#if defined(MBEDTLS_SHA256_ALT)
|
||||
|
||||
#include "sha.h"
|
||||
#include "hwcrypto/sha.h"
|
||||
|
||||
typedef SHA256_CTX mbedtls_sha256_context;
|
||||
typedef esp_sha_context mbedtls_sha256_context;
|
||||
|
||||
#define mbedtls_sha256_init esp_sha256_init
|
||||
#define mbedtls_sha256_clone esp_sha256_clone
|
||||
@@ -23,7 +22,7 @@ typedef SHA256_CTX mbedtls_sha256_context;
|
||||
#define mbedtls_sha256_update esp_sha256_update
|
||||
#define mbedtls_sha256_finish esp_sha256_finish
|
||||
#define mbedtls_sha256_free esp_sha256_free
|
||||
#define mbedtls_sha256_process esp_sha256_process
|
||||
#define mbedtls_sha256_process(...)
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user