libsodium: Use mbedTLS implementations for SHA256 & SHA512

* Adds support for hardware accelerated SHA
* Saves code size (~5.5KB) for SHA256 & SHA512 where libsodium & mbedTLS both used
This commit is contained in:
Angus Gratton
2017-08-18 15:11:33 +10:00
committed by Angus Gratton
parent bfb15c6fc9
commit 979eabeba5
14 changed files with 264 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
/* Shim needed to make sure the mbedTLS-specific
sha256 & sha512 headers are included */
#pragma once
#include "crypto_hash_sha512.h"
#include "crypto_hash_sha256.h"
#include_next "sodium/crypto_auth.h"