utils: reimplement SumStrMd5() and SumFileMd5()

Change-Id: I3db1c798c05eedbee07701ffc691baecdd363982