[PATCH v4 08/29] hash: integrate hash on mbedtls