Check hash digest of attachment

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>