[PATCH v6 07/28] hash: integrate hash on mbedtls