]> granicus.if.org Git - esp-idf/commit
hwcrypto: Fix bug with concurrent SHA access
authorAngus Gratton <angus@espressif.com>
Thu, 17 Aug 2017 05:48:43 +0000 (15:48 +1000)
committerAngus Gratton <gus@projectgus.com>
Fri, 25 Aug 2017 06:08:03 +0000 (16:08 +1000)
commit703d143619dcb740b5da71953e57d2ec5bf535ca
tree7ec3da5d5592349a1c57a09a6a2ef3276767006b
parent0ea4cd67ddc0fd7edc3b68538bdc0717483e834b
hwcrypto: Fix bug with concurrent SHA access

If two different types of SHA hashes were active in the hardware
concurrently, a race condition meant the SHA unit could be incorrectly
reset leading to all-zero results.
components/esp32/hwcrypto/sha.c