[PATCH v2 09/18] common: Move host-only logic in image-sig.c to separate file