[PATCH v2 10/28] hash: integrate hash on mbedtls