refactor DigestUtils to support more algorithms

N/A

Change-Id: Id4d87a57dbac2bb1b1cffe9c22917509c9b77bc5
Signed-off-by: liuhuahang <liuhuahang@xiaomi.com>