]> granicus.if.org Git - esp-idf/commit
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional
authorAngus Gratton <angus@espressif.com>
Wed, 27 Sep 2017 23:28:24 +0000 (09:28 +1000)
committerAngus Gratton <gus@projectgus.com>
Fri, 6 Oct 2017 00:51:55 +0000 (11:51 +1100)
commitacff3c9c596779b43ec45ed3716567e5950a4d46
treec898903e7e1895125c37d31441d4a44884821530
parent58a5d883f4fead29862feb2187e6c83c847c9e55
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional

* Only direct invocation of cypto_hash_sha256 & crypto_hash_sha512 produced correct output.
* Some remaining header file mixups, so changed approach to wrapping the state structures.
* Fixes https://github.com/espressif/esp-idf/issues/1044 (crypto_sign problems)
* Add option to disable mbedTLS implementation for SHA256 & SHA512 in libsodium
15 files changed:
components/libsodium/Kconfig [new file with mode: 0644]
components/libsodium/component.mk
components/libsodium/port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.c [new file with mode: 0644]
components/libsodium/port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.c [new file with mode: 0644]
components/libsodium/port/crypto_hash_sha256_mbedtls.c [deleted file]
components/libsodium/port/crypto_hash_sha512_mbedtls.c [deleted file]
components/libsodium/port_include/sodium.h [deleted file]
components/libsodium/port_include/sodium/crypto_auth.h [deleted file]
components/libsodium/port_include/sodium/crypto_auth_hmacsha256.h [deleted file]
components/libsodium/port_include/sodium/crypto_auth_hmacsha512.h [deleted file]
components/libsodium/port_include/sodium/crypto_auth_hmacsha512256.h [deleted file]
components/libsodium/port_include/sodium/crypto_hash_sha256.h [deleted file]
components/libsodium/port_include/sodium/crypto_hash_sha512.h [deleted file]
components/libsodium/test/test_sodium.c
tools/unit-test-app/sdkconfig