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