[PATCH v7 4/9] lib: sha256: move common function to sha256_common.c