[PATCH v3 07/25] hash: integrate hash on mbedtls