mbedtls: Use hardware accelerated AES, SHA, bignum

This commit is contained in:
Wu Jian Gang
2016-09-08 17:41:43 +08:00
parent 2211759cc0
commit 95defc7d32
13 changed files with 572 additions and 3043 deletions

View File

@@ -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