libopkg: fix SHA256 calculation for big endian system