class: move swupdate_get_sha256 to library
class: move swupdate_get_sha256 to library

Signed-off-by: Stefano Babic <2c2905e0c2877c7e4ce40c7425e972302953fda5@denx.de>

sbabic/meta-swupdate,sbabic/meta-swupdate